forked from qt-creator/qt-creator
Clang: Support second translation unit
A TranslationUnit is owned by TranslationUnits now. TranslationUnits allows to add another TranslationUnit and to update/query the recently and previously parsed translation unit. This does not change any behavior yet. Change-Id: I8a2f0cc05d3e51bf739dd5d7c4da14b54147f3ab Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -57,12 +57,15 @@ public:
|
||||
};
|
||||
|
||||
public:
|
||||
TranslationUnit(const Utf8String &filePath,
|
||||
TranslationUnit(const Utf8String &id,
|
||||
const Utf8String &filePath,
|
||||
CXIndex &cxIndex,
|
||||
CXTranslationUnit &cxTranslationUnit);
|
||||
|
||||
bool isNull() const;
|
||||
|
||||
Utf8String id() const;
|
||||
|
||||
Utf8String filePath() const;
|
||||
CXIndex &cxIndex() const;
|
||||
CXTranslationUnit &cxTranslationUnit() const;
|
||||
@@ -94,6 +97,7 @@ public:
|
||||
SkippedSourceRanges skippedSourceRanges() const;
|
||||
|
||||
private:
|
||||
const Utf8String m_id;
|
||||
const Utf8String m_filePath;
|
||||
CXIndex &m_cxIndex;
|
||||
CXTranslationUnit &m_cxTranslationUnit;
|
||||
|
||||
Reference in New Issue
Block a user