forked from qt-creator/qt-creator
Clang: Reparse the translation unit for unsaved file changes
Change-Id: I49711ce040a995f193d36961e010decc27c34c4c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
efada54950
commit
2443f18b85
@@ -82,16 +82,23 @@ public:
|
||||
const Utf8String &filePath() const;
|
||||
const Utf8String &projectPartId() const;
|
||||
|
||||
const time_point &lastChangeTimePoint() const;
|
||||
const time_point &lastProjectPartChangeTimePoint() const;
|
||||
const time_point &lastUnsavedFilesChangeTimePoint() const;
|
||||
|
||||
bool isNeedingReparse() const;
|
||||
|
||||
private:
|
||||
void checkIfNull() const;
|
||||
void checkIfFileExists() const;
|
||||
void updateLastChangeTimePoint() const;
|
||||
void removeOutdatedTranslationUnit() const;
|
||||
void updateLastProjectPartChangeTimePoint() const;
|
||||
void updateLastUnsavedFilesChangeTimePoint() const;
|
||||
void removeTranslationUnitIfProjectPartWasChanged() const;
|
||||
bool projectPartIsOutdated() const;
|
||||
void createTranslationUnitIfNeeded() const;
|
||||
void checkTranslationUnitErrorCode(CXErrorCode errorCode) const;
|
||||
void reparseTranslationUnit() const;
|
||||
void reparseTranslationUnitIfUnsavedFilesAreChanged() const;
|
||||
void printIncludes() const;
|
||||
static int defaultOptions();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user