summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/CppDocument.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-02-06 15:04:23 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2015-02-12 10:39:51 +0000
commitae3aa07c4df1f8e6e413b7513611d306063b126b (patch)
treeafcc64f1f8fa654482b1d3a11e4e2522b968184f /src/libs/cplusplus/CppDocument.cpp
parentd68fc038cccc168ae8f3d03f12c00779876233f0 (diff)
downloadqt-creator-ae3aa07c4df1f8e6e413b7513611d306063b126b.tar.gz
C++: Remove workaround for crashing if parsing invalid code
This reverts the changes commit beac7b9539457fe721de1709b9a406cac2379851 C++: Fix highlighting after "invalid code" commit 78ab287fc6d3770646012e461b0a518db4e9c9f4 C++: Stop parsing a declaration after two tries which were a work around for QTCREATORBUG-12890. A follow-up patch provides a proper fix. Task-number: QTCREATORBUG-12890 Change-Id: I2650a8e41c8ff1180cad9f069e463fc51bd2f1b1 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/libs/cplusplus/CppDocument.cpp')
-rw-r--r--src/libs/cplusplus/CppDocument.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libs/cplusplus/CppDocument.cpp b/src/libs/cplusplus/CppDocument.cpp
index 3c98a24989..6ffbcdf6d8 100644
--- a/src/libs/cplusplus/CppDocument.cpp
+++ b/src/libs/cplusplus/CppDocument.cpp
@@ -623,13 +623,6 @@ void Document::tokenize()
_translationUnit->tokenize();
}
-void Document::setRetryHarderToParseDeclarations(bool yesno)
-{
- _translationUnit->setRetryParseDeclarationLimit(
- yesno ? 1000
- : TranslationUnit::defaultRetryParseDeclarationLimit());
-}
-
bool Document::isParsed() const
{
return _translationUnit->isParsed();