Commit 817bbbfb authored by Ole Christian Eidheim's avatar Ole Christian Eidheim
Browse files

Renamed header/source files with respect to unix file name convention

parent 8595859e
add_library(clangmm
CodeCompleteResults.cc
CompilationDatabase.cc
CompileCommand.cc
CompileCommands.cc
CompletionString.cc
Cursor.cc
Index.cc
SourceLocation.cc
SourceRange.cc
Token.cc
Tokens.cc
TranslationUnit.cc
Diagnostic.cc
Utility.cc
code_complete_results.cc
compilation_database.cc
compile_command.cc
compile_commands.cc
completion_string.cc
cursor.cc
index.cc
source_location.cc
source_range.cc
token.cc
tokens.cc
translation_unit.cc
diagnostic.cc
utility.cc
)
include_directories(${LIBCLANG_INCLUDE_DIRS})
......@@ -23,20 +23,20 @@ if(${NOT_SUB_PROJECT})
install(TARGETS clangmm ARCHIVE DESTINATION lib)
install(FILES
clangmm.h
CodeCompleteResults.h
CompilationDatabase.h
CompileCommand.h
CompileCommands.h
CompletionString.h
Cursor.h
Index.h
SourceLocation.h
SourceRange.h
Token.h
Tokens.h
TranslationUnit.h
Diagnostic.h
Utility.h
code_complete_results.h
compilation_database.h
compile_command.h
compile_commands.h
completion_string.h
cursor.h
index.h
source_location.h
source_range.h
token.h
tokens.h
translation_unit.h
diagnostic.h
utility.h
DESTINATION include/libclangmm
)
endif()
#ifndef CLANGMM_H_
#define CLANGMM_H_
#include "TranslationUnit.h"
#include "SourceLocation.h"
#include "SourceRange.h"
#include "Token.h"
#include "Tokens.h"
#include "CompilationDatabase.h"
#include "CompileCommands.h"
#include "CompileCommand.h"
#include "CodeCompleteResults.h"
#include "CompletionString.h"
#include "Index.h"
#include "Cursor.h"
#include "Diagnostic.h"
#include "Utility.h"
#include "translation_unit.h"
#include "source_location.h"
#include "source_range.h"
#include "token.h"
#include "tokens.h"
#include "compilation_database.h"
#include "compile_commands.h"
#include "compile_command.h"
#include "code_complete_results.h"
#include "completion_string.h"
#include "index.h"
#include "cursor.h"
#include "diagnostic.h"
#include "utility.h"
#endif // CLANGMM_H_
#include "CodeCompleteResults.h"
#include "CompletionString.h"
#include "Utility.h"
#include "code_complete_results.h"
#include "completion_string.h"
#include "utility.h"
clangmm::CodeCompleteResults::CodeCompleteResults(CXTranslationUnit &cx_tu,
const std::string &buffer,
......
......@@ -3,7 +3,7 @@
#include <clang-c/Index.h>
#include <map>
#include <string>
#include "CompletionString.h"
#include "completion_string.h"
namespace clangmm {
class CodeCompleteResults {
......
#include "CompilationDatabase.h"
#include "compilation_database.h"
#include <exception>
clangmm::CompilationDatabase::CompilationDatabase(const std::string &project_path) {
......
#include "CompileCommand.h"
#include "CompileCommands.h"
#include "Utility.h"
#include "compile_command.h"
#include "compile_commands.h"
#include "utility.h"
std::vector<std::string> clangmm::CompileCommand::get_arguments() {
unsigned size = clang_CompileCommand_getNumArgs(cx_command);
......
#include "CompileCommands.h"
#include "compile_commands.h"
clangmm::CompileCommands::CompileCommands(const std::string &filename, CompilationDatabase &db) {
if(!filename.empty())
......
#ifndef COMPILECOMMANDS_H_
#define COMPILECOMMANDS_H_
#include "CompilationDatabase.h"
#include "CompileCommand.h"
#include "compilation_database.h"
#include "compile_command.h"
#include <clang-c/CXCompilationDatabase.h>
#include <string>
#include <vector>
......
#include "CompletionString.h"
#include "Utility.h"
#include "completion_string.h"
#include "utility.h"
clangmm::CompletionChunk::CompletionChunk(std::string text, CompletionChunkKind kind)
: text(std::move(text)), kind(kind) {}
......
#include "Cursor.h"
#include "Utility.h"
#include "cursor.h"
#include "utility.h"
#include <algorithm>
std::string clangmm::Cursor::Type::get_spelling() const {
......
#ifndef CURSOR_H_
#define CURSOR_H_
#include <clang-c/Index.h>
#include "SourceLocation.h"
#include "SourceRange.h"
#include "source_location.h"
#include "source_range.h"
#include <string>
#include <vector>
#include <unordered_set>
......
#include "Diagnostic.h"
#include "SourceLocation.h"
#include "Tokens.h"
#include "Utility.h"
#include "diagnostic.h"
#include "source_location.h"
#include "tokens.h"
#include "utility.h"
clangmm::Diagnostic::Diagnostic(CXTranslationUnit& cx_tu, CXDiagnostic& cx_diagnostic) {
severity=clang_getDiagnosticSeverity(cx_diagnostic);
......
......@@ -3,7 +3,7 @@
#include <string>
#include <vector>
#include <clang-c/Index.h>
#include "SourceRange.h"
#include "source_range.h"
namespace clangmm {
class Diagnostic {
......
#include "Index.h"
#include "index.h"
clangmm::Index::Index(int excludeDeclarationsFromPCH, int displayDiagnostics) {
cx_index = clang_createIndex(excludeDeclarationsFromPCH, displayDiagnostics);
......
#include "SourceLocation.h"
#include "Utility.h"
#include "source_location.h"
#include "utility.h"
// // // // // // // //
// SourceLocation //
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment