forked from qt-creator/qt-creator
C++: Fix parsing designators vs lambdas
The introduction of C99 designators led to parsing problems with lambdas that were passed in as a function arguments. Fixed by prefering to parse without designators first. This will be cleaner/clearer once the appropriate "LanguageFeatures" from the Project Parts will be passed in. Change-Id: Ia9cb7c4a4c9345e729cf2044e1e5411fe63e33ec Reviewed-by: Wang Hoi <wanghoi@126.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
1
tests/auto/cplusplus/cxx11/data/lambda.1.cpp
Normal file
1
tests/auto/cplusplus/cxx11/data/lambda.1.cpp
Normal file
@@ -0,0 +1 @@
|
||||
Foo foo([&](int a) { ++a; });
|
Reference in New Issue
Block a user