summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/CppDocument.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/cplusplus/CppDocument.h')
-rw-r--r--src/libs/cplusplus/CppDocument.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/libs/cplusplus/CppDocument.h b/src/libs/cplusplus/CppDocument.h
index 48d72cad3c..024fec93fb 100644
--- a/src/libs/cplusplus/CppDocument.h
+++ b/src/libs/cplusplus/CppDocument.h
@@ -40,6 +40,7 @@
#include <QtCore/QDateTime>
#include <QtCore/QHash>
#include <QtCore/QFileInfo>
+#include <QtCore/QAtomicInt>
namespace CPlusPlus {
@@ -125,11 +126,6 @@ public:
void check(CheckMode mode = FullCheck);
- void findExposedQmlTypes();
-
- void releaseSource();
- void releaseTranslationUnit();
-
static Ptr create(const QString &fileName);
class DiagnosticMessage
@@ -320,18 +316,8 @@ public:
const MacroUse *findMacroUseAt(unsigned offset) const;
const UndefinedMacroUse *findUndefinedMacroUseAt(unsigned offset) const;
- class ExportedQmlType {
- public:
- QString packageName;
- QString typeName;
- int majorVersion;
- int minorVersion;
- Scope *scope;
- QString typeExpression;
- };
-
- QList<ExportedQmlType> exportedQmlTypes() const
- { return _exportedQmlTypes; }
+ void keepSourceAndAST();
+ void releaseSourceAndAST();
private:
QString _fileName;
@@ -344,11 +330,12 @@ private:
QList<Block> _skippedBlocks;
QList<MacroUse> _macroUses;
QList<UndefinedMacroUse> _undefinedMacroUses;
- QList<ExportedQmlType> _exportedQmlTypes;
QByteArray _source;
QDateTime _lastModified;
+ QAtomicInt _keepSourceAndASTCount;
unsigned _revision;
unsigned _editorRevision;
+ bool _fastCheck;
friend class Snapshot;
};