dummyunit 661ebd3a96
Fix AST for brace initialization after decltype() (#3245)
Currently sub-expressions like decltype(x){} break AST creation for
subsequent tokens in the whole expression. In some cases this triggers
validation checks in validateAst() and analysis on the file stops.
For example, code like this:
    int x = decltype(0){} ? 0 : 1;
currently produces internalAstError.

To fix the issue iscpp11init_impl() was changed to recognize { preceded
by decltype(expr) as a start of C++11 brace initialization expression.
2021-05-03 21:40:49 +02:00
..
2021-05-03 16:34:55 +02:00
2019-06-29 07:49:14 +02:00
2021-03-21 20:58:32 +01:00
2020-05-10 11:16:32 +02:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-04-09 08:46:47 +02:00
2021-03-21 20:58:32 +01:00
2021-04-22 19:08:24 +02:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2020-05-10 11:16:32 +02:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2019-02-09 07:24:06 +01:00
2020-05-10 11:16:32 +02:00
2020-05-10 11:16:32 +02:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2019-06-29 07:49:14 +02:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2019-02-09 07:24:06 +01:00
2021-03-21 20:58:32 +01:00
2021-04-28 11:57:28 +02:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00
2021-03-21 20:58:32 +01:00