build: Updated to Clang 7.0.0

This commit is contained in:
Eberhard Graether
2018-10-26 14:23:26 +02:00
parent 3d8afdb7be
commit f7b77b6f9c
92 changed files with 19097 additions and 15975 deletions
@@ -50,7 +50,7 @@ void PreprocessorCallbacks::FileChanged(
void PreprocessorCallbacks::InclusionDirective(
clang::SourceLocation hashLocation, const clang::Token& includeToken, llvm::StringRef fileName, bool isAngled,
clang::CharSourceRange fileNameRange, const clang::FileEntry* fileEntry, llvm::StringRef searchPath,
llvm::StringRef relativePath, const clang::Module* imported
llvm::StringRef relativePath, const clang::Module* imported, clang::SrcMgr::CharacteristicKind fileType
){
if (m_currentFileSymbolId && fileEntry)
{
@@ -32,7 +32,7 @@ public:
void InclusionDirective(
clang::SourceLocation hashLocation, const clang::Token& includeToken, llvm::StringRef fileName, bool isAngled,
clang::CharSourceRange fileNameRange, const clang::FileEntry* fileEntry, llvm::StringRef searchPath,
llvm::StringRef relativePath, const clang::Module* imported) override;
llvm::StringRef relativePath, const clang::Module* imported, clang::SrcMgr::CharacteristicKind fileType) override;
void MacroDefined(const clang::Token& macroNameToken, const clang::MacroDirective* macroDirective) override;
void MacroUndefined(
+1 -1
View File
@@ -204,7 +204,7 @@ ParseLocation utility::getParseLocation(
sourceManager.isMacroBodyExpansion(range.getEnd())
)
){
range = sourceManager.getExpansionRange(sourceRange);
range = sourceManager.getExpansionRange(sourceRange).getAsRange();
if (range.isValid())
{
endLoc = preprocessor->getLocForEndOfToken(range.getBegin());