summaryrefslogtreecommitdiff
path: root/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clangbackend/ipcsource/clangtranslationunit.cpp')
-rw-r--r--src/tools/clangbackend/ipcsource/clangtranslationunit.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp b/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp
index 38315719d1..8682a3e9a3 100644
--- a/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp
+++ b/src/tools/clangbackend/ipcsource/clangtranslationunit.cpp
@@ -35,7 +35,7 @@
#include "skippedsourceranges.h"
#include "sourcelocation.h"
#include "sourcerange.h"
-#include "highlightinginformations.h"
+#include "highlightingmarks.h"
#include "translationunitfilenotexitexception.h"
#include "translationunitisnullexception.h"
#include "translationunitparseerrorexception.h"
@@ -80,7 +80,7 @@ public:
uint documentRevision = 0;
bool needsToBeReparsed = false;
bool hasNewDiagnostics = true;
- bool hasNewHighlightingInformations = true;
+ bool hasNewHighlightingMarks = true;
bool isUsedByCurrentEditor = false;
bool isVisibleInEditor = false;
};
@@ -247,9 +247,9 @@ bool TranslationUnit::hasNewDiagnostics() const
return d->hasNewDiagnostics;
}
-bool TranslationUnit::hasNewHighlightingInformations() const
+bool TranslationUnit::hasNewHighlightingMarks() const
{
- return d->hasNewHighlightingInformations;
+ return d->hasNewHighlightingMarks;
}
DiagnosticSet TranslationUnit::diagnostics() const
@@ -319,14 +319,14 @@ Cursor TranslationUnit::cursor() const
return clang_getTranslationUnitCursor(cxTranslationUnit());
}
-HighlightingInformations TranslationUnit::highlightingInformations() const
+HighlightingMarks TranslationUnit::highlightingMarks() const
{
- d->hasNewHighlightingInformations = false;
+ d->hasNewHighlightingMarks = false;
- return highlightingInformationsInRange(cursor().sourceRange());
+ return highlightingMarksInRange(cursor().sourceRange());
}
-HighlightingInformations TranslationUnit::highlightingInformationsInRange(const SourceRange &range) const
+HighlightingMarks TranslationUnit::highlightingMarksInRange(const SourceRange &range) const
{
CXToken *cxTokens = 0;
uint cxTokensCount = 0;
@@ -334,7 +334,7 @@ HighlightingInformations TranslationUnit::highlightingInformationsInRange(const
clang_tokenize(translationUnit, range, &cxTokens, &cxTokensCount);
- return HighlightingInformations(translationUnit, cxTokens, cxTokensCount);
+ return HighlightingMarks(translationUnit, cxTokens, cxTokensCount);
}
SkippedSourceRanges TranslationUnit::skippedSourceRanges() const
@@ -376,7 +376,7 @@ void TranslationUnit::setDirty()
{
d->needsToBeReparsed = true;
d->hasNewDiagnostics = true;
- d->hasNewHighlightingInformations = true;
+ d->hasNewHighlightingMarks = true;
}
bool TranslationUnit::isMainFileAndExistsOrIsOtherFile(const Utf8String &filePath) const