Clang: Avoid needless reparse after first parse

Change-Id: Ie97818f29d1df61380cd1c22ef2598091050b10d
Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
Nikolai Kosjar
2015-11-23 13:31:46 +01:00
parent 6deaf6b23d
commit 609bc2a389
4 changed files with 69 additions and 13 deletions

View File

@@ -83,8 +83,8 @@ public:
CXTranslationUnit translationUnit = nullptr;
CXIndex index = nullptr;
uint documentRevision = 0;
bool needsToBeReparsed = false;
bool hasNewDiagnostics = false;
bool needsToBeReparsed = false;
bool hasNewDiagnostics = true;
};
TranslationUnitData::TranslationUnitData(const Utf8String &filePath,