summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/CppDocument.h
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2014-10-08 11:04:33 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2014-10-15 10:08:19 +0200
commit390b4f0e0b544c713fbac4369131fa9b80d60b1a (patch)
treee3070240995c188b6d8f646ece9e1e2f200bd342 /src/libs/cplusplus/CppDocument.h
parentc2eb91e053332d010adc8b9e7918d9de28ef4c90 (diff)
downloadqt-creator-390b4f0e0b544c713fbac4369131fa9b80d60b1a.tar.gz
C++: Fix parsing of "Foo *foo = new Foo()"
It should be parsed as an DeclarationStatement, but instead it was parsed as an ExpressionStatement. Regression introduced with commit d3c5fff66de034e46e825b63943909d36067405f. C++: Fix expensive parsing of expressions The introduced ASTCache did not save the correct return value of a parse* function. Because of that, the first return in Parser::parseExpressionList returned false on the second invocation (cache hit), instead of true, which resulted in an ExpressionStatement. Task-number: QTCREATORBUG-13122 Change-Id: I8dbd8852b0909edddcd3195b484f4cea92328cc5 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
Diffstat (limited to 'src/libs/cplusplus/CppDocument.h')
0 files changed, 0 insertions, 0 deletions