mirror of https://gitlab.com/cppit/libclangmm
30 changed files with 88 additions and 88 deletions
@ -1,17 +1,17 @@ |
|||||||
#ifndef CLANGMM_H_ |
#ifndef CLANGMM_H_ |
||||||
#define CLANGMM_H_ |
#define CLANGMM_H_ |
||||||
#include "TranslationUnit.h" |
#include "translation_unit.h" |
||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include "SourceRange.h" |
#include "source_range.h" |
||||||
#include "Token.h" |
#include "token.h" |
||||||
#include "Tokens.h" |
#include "tokens.h" |
||||||
#include "CompilationDatabase.h" |
#include "compilation_database.h" |
||||||
#include "CompileCommands.h" |
#include "compile_commands.h" |
||||||
#include "CompileCommand.h" |
#include "compile_command.h" |
||||||
#include "CodeCompleteResults.h" |
#include "code_complete_results.h" |
||||||
#include "CompletionString.h" |
#include "completion_string.h" |
||||||
#include "Index.h" |
#include "index.h" |
||||||
#include "Cursor.h" |
#include "cursor.h" |
||||||
#include "Diagnostic.h" |
#include "diagnostic.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
#endif // CLANGMM_H_
|
#endif // CLANGMM_H_
|
||||||
|
|||||||
@ -1,6 +1,6 @@ |
|||||||
#include "CodeCompleteResults.h" |
#include "code_complete_results.h" |
||||||
#include "CompletionString.h" |
#include "completion_string.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
|
|
||||||
clangmm::CodeCompleteResults::CodeCompleteResults(CXTranslationUnit &cx_tu,
|
clangmm::CodeCompleteResults::CodeCompleteResults(CXTranslationUnit &cx_tu,
|
||||||
const std::string &buffer, |
const std::string &buffer, |
||||||
@ -1,4 +1,4 @@ |
|||||||
#include "CompilationDatabase.h" |
#include "compilation_database.h" |
||||||
#include <exception> |
#include <exception> |
||||||
|
|
||||||
clangmm::CompilationDatabase::CompilationDatabase(const std::string &project_path) { |
clangmm::CompilationDatabase::CompilationDatabase(const std::string &project_path) { |
||||||
@ -1,6 +1,6 @@ |
|||||||
#include "CompileCommand.h" |
#include "compile_command.h" |
||||||
#include "CompileCommands.h" |
#include "compile_commands.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
|
|
||||||
std::vector<std::string> clangmm::CompileCommand::get_arguments() { |
std::vector<std::string> clangmm::CompileCommand::get_arguments() { |
||||||
unsigned size = clang_CompileCommand_getNumArgs(cx_command); |
unsigned size = clang_CompileCommand_getNumArgs(cx_command); |
||||||
@ -1,4 +1,4 @@ |
|||||||
#include "CompileCommands.h" |
#include "compile_commands.h" |
||||||
|
|
||||||
clangmm::CompileCommands::CompileCommands(const std::string &filename, CompilationDatabase &db) { |
clangmm::CompileCommands::CompileCommands(const std::string &filename, CompilationDatabase &db) { |
||||||
if(!filename.empty()) |
if(!filename.empty()) |
||||||
@ -1,7 +1,7 @@ |
|||||||
#ifndef COMPILECOMMANDS_H_ |
#ifndef COMPILECOMMANDS_H_ |
||||||
#define COMPILECOMMANDS_H_ |
#define COMPILECOMMANDS_H_ |
||||||
#include "CompilationDatabase.h" |
#include "compilation_database.h" |
||||||
#include "CompileCommand.h" |
#include "compile_command.h" |
||||||
#include <clang-c/CXCompilationDatabase.h> |
#include <clang-c/CXCompilationDatabase.h> |
||||||
#include <string> |
#include <string> |
||||||
#include <vector> |
#include <vector> |
||||||
@ -1,5 +1,5 @@ |
|||||||
#include "CompletionString.h" |
#include "completion_string.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
|
|
||||||
clangmm::CompletionChunk::CompletionChunk(std::string text, CompletionChunkKind kind) |
clangmm::CompletionChunk::CompletionChunk(std::string text, CompletionChunkKind kind) |
||||||
: text(std::move(text)), kind(kind) {} |
: text(std::move(text)), kind(kind) {} |
||||||
@ -1,5 +1,5 @@ |
|||||||
#include "Cursor.h" |
#include "cursor.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
#include <algorithm> |
#include <algorithm> |
||||||
|
|
||||||
std::string clangmm::Cursor::Type::get_spelling() const { |
std::string clangmm::Cursor::Type::get_spelling() const { |
||||||
@ -1,8 +1,8 @@ |
|||||||
#ifndef CURSOR_H_ |
#ifndef CURSOR_H_ |
||||||
#define CURSOR_H_ |
#define CURSOR_H_ |
||||||
#include <clang-c/Index.h> |
#include <clang-c/Index.h> |
||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include "SourceRange.h" |
#include "source_range.h" |
||||||
#include <string> |
#include <string> |
||||||
#include <vector> |
#include <vector> |
||||||
#include <unordered_set> |
#include <unordered_set> |
||||||
@ -1,7 +1,7 @@ |
|||||||
#include "Diagnostic.h" |
#include "diagnostic.h" |
||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include "Tokens.h" |
#include "tokens.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
|
|
||||||
clangmm::Diagnostic::Diagnostic(CXTranslationUnit& cx_tu, CXDiagnostic& cx_diagnostic) { |
clangmm::Diagnostic::Diagnostic(CXTranslationUnit& cx_tu, CXDiagnostic& cx_diagnostic) { |
||||||
severity=clang_getDiagnosticSeverity(cx_diagnostic); |
severity=clang_getDiagnosticSeverity(cx_diagnostic); |
||||||
@ -1,4 +1,4 @@ |
|||||||
#include "Index.h" |
#include "index.h" |
||||||
|
|
||||||
clangmm::Index::Index(int excludeDeclarationsFromPCH, int displayDiagnostics) { |
clangmm::Index::Index(int excludeDeclarationsFromPCH, int displayDiagnostics) { |
||||||
cx_index = clang_createIndex(excludeDeclarationsFromPCH, displayDiagnostics); |
cx_index = clang_createIndex(excludeDeclarationsFromPCH, displayDiagnostics); |
||||||
@ -1,5 +1,5 @@ |
|||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
|
|
||||||
// // // // // // // //
|
// // // // // // // //
|
||||||
// SourceLocation //
|
// SourceLocation //
|
||||||
@ -1,4 +1,4 @@ |
|||||||
#include "SourceRange.h" |
#include "source_range.h" |
||||||
|
|
||||||
clangmm::SourceRange::SourceRange(const clangmm::SourceLocation &start, const clangmm::SourceLocation &end) { |
clangmm::SourceRange::SourceRange(const clangmm::SourceLocation &start, const clangmm::SourceLocation &end) { |
||||||
cx_range = clang_getRange(start.cx_location, end.cx_location); |
cx_range = clang_getRange(start.cx_location, end.cx_location); |
||||||
@ -1,7 +1,7 @@ |
|||||||
#ifndef SOURCERANGE_H_ |
#ifndef SOURCERANGE_H_ |
||||||
#define SOURCERANGE_H_ |
#define SOURCERANGE_H_ |
||||||
#include <clang-c/Index.h> |
#include <clang-c/Index.h> |
||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include <string> |
#include <string> |
||||||
#include <utility> |
#include <utility> |
||||||
|
|
||||||
@ -1,5 +1,5 @@ |
|||||||
#include "Token.h" |
#include "token.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
|
|
||||||
// // // // //
|
// // // // //
|
||||||
// Token //
|
// Token //
|
||||||
@ -1,9 +1,9 @@ |
|||||||
#ifndef TOKEN_H_ |
#ifndef TOKEN_H_ |
||||||
#define TOKEN_H_ |
#define TOKEN_H_ |
||||||
#include <clang-c/Index.h> |
#include <clang-c/Index.h> |
||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include "SourceRange.h" |
#include "source_range.h" |
||||||
#include "Cursor.h" |
#include "cursor.h" |
||||||
#include <string> |
#include <string> |
||||||
|
|
||||||
namespace clangmm { |
namespace clangmm { |
||||||
@ -1,5 +1,5 @@ |
|||||||
#include "Tokens.h" |
#include "tokens.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
#include <unordered_set> |
#include <unordered_set> |
||||||
#include <cstring> |
#include <cstring> |
||||||
#include <map> |
#include <map> |
||||||
@ -1,8 +1,8 @@ |
|||||||
#ifndef TOKENS_H_ |
#ifndef TOKENS_H_ |
||||||
#define TOKENS_H_ |
#define TOKENS_H_ |
||||||
#include <clang-c/Index.h> |
#include <clang-c/Index.h> |
||||||
#include "SourceRange.h" |
#include "source_range.h" |
||||||
#include "Token.h" |
#include "token.h" |
||||||
#include <unordered_set> |
#include <unordered_set> |
||||||
#include <vector> |
#include <vector> |
||||||
#include <memory> |
#include <memory> |
||||||
@ -1,7 +1,7 @@ |
|||||||
#include "TranslationUnit.h" |
#include "translation_unit.h" |
||||||
#include "SourceLocation.h" |
#include "source_location.h" |
||||||
#include "Tokens.h" |
#include "tokens.h" |
||||||
#include "Utility.h" |
#include "utility.h" |
||||||
#include <fstream> |
#include <fstream> |
||||||
#include <sstream> |
#include <sstream> |
||||||
|
|
||||||
@ -1,4 +1,4 @@ |
|||||||
#include "Utility.h" |
#include "utility.h" |
||||||
#include <regex> |
#include <regex> |
||||||
|
|
||||||
std::string clangmm::to_string(CXString cx_string) { |
std::string clangmm::to_string(CXString cx_string) { |
||||||
Loading…
Reference in new issue