diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp index 169ec2b694c313581f2786fc83efb5c335257538..e337d7624e1de6f8b581c142b699b9c80d9032b1 100644 --- a/src/libs/cplusplus/CppDocument.cpp +++ b/src/libs/cplusplus/CppDocument.cpp @@ -256,8 +256,7 @@ Document::Document(const QString &fileName) : _fileName(QDir::cleanPath(fileName)), _globalNamespace(0), _revision(0), - _editorRevision(0), - _fastCheck(false) + _editorRevision(0) { _control = new Control(); @@ -575,10 +574,8 @@ void Document::check(CheckMode mode) _globalNamespace = _control->newNamespace(0); Bind semantic(_translationUnit); - if (mode == FastCheck) { - _fastCheck = true; + if (mode == FastCheck) semantic.setSkipFunctionBodies(true); - } if (! _translationUnit->ast()) return; // nothing to do. @@ -602,8 +599,7 @@ void Document::releaseSourceAndAST() if (!_keepSourceAndASTCount.deref()) { _source.clear(); _translationUnit->release(); - if (_fastCheck) - _control->squeeze(); + _control->squeeze(); } } diff --git a/src/libs/cplusplus/CppDocument.h b/src/libs/cplusplus/CppDocument.h index 024fec93fb5d16a34632134ec935aeb30a8a9f99..930eb15efabc418b5b252913a3e59ee1316e9988 100644 --- a/src/libs/cplusplus/CppDocument.h +++ b/src/libs/cplusplus/CppDocument.h @@ -335,7 +335,6 @@ private: QAtomicInt _keepSourceAndASTCount; unsigned _revision; unsigned _editorRevision; - bool _fastCheck; friend class Snapshot; };