forked from qt-creator/qt-creator
C++: Remove workaround for crashing if parsing invalid code
This reverts the changes
commit beac7b9539
C++: Fix highlighting after "invalid code"
commit 78ab287fc6
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>
This commit is contained in:
@@ -149,9 +149,6 @@ public:
|
||||
LanguageFeatures languageFeatures() const { return _languageFeatures; }
|
||||
void setLanguageFeatures(LanguageFeatures features) { _languageFeatures = features; }
|
||||
|
||||
static int defaultRetryParseDeclarationLimit() { return 2; }
|
||||
void setRetryParseDeclarationLimit(int limit) { _retryParseDeclarationLimit = limit; }
|
||||
|
||||
private:
|
||||
struct PPLine {
|
||||
unsigned utf16charOffset;
|
||||
@@ -213,8 +210,6 @@ private:
|
||||
Flags f;
|
||||
};
|
||||
LanguageFeatures _languageFeatures;
|
||||
|
||||
int _retryParseDeclarationLimit;
|
||||
};
|
||||
|
||||
} // namespace CPlusPlus
|
||||
|
||||
Reference in New Issue
Block a user