Richard Smith
dfc4bff19b
Extend -ast-dump for CXXRecordDecl to dump the flags from the DefinitionData.
...
llvm-svn: 313943
2017-09-22 00:11:15 +00:00
Richard Smith
a547eb27fa
P0305R0: Semantic analysis and code generation for C++17 init-statement for 'if' and 'switch':
...
if (stmt; condition) { ... }
Patch by Anton Bikineev! Some minor formatting and comment tweets by me.
llvm-svn: 275350
2016-07-14 00:11:03 +00:00
Olivier Goffart
119dad63bc
Keep invalid functions as part of the AST
...
Differential Revision: http://reviews.llvm.org/D19764
llvm-svn: 272962
2016-06-16 21:39:55 +00:00
Olivier Goffart
122993bfd6
Keep the IfStmt node even if the condition is invalid
...
This is important to keep the information in IDE or other tools
even if the code contains a few errors
llvm-svn: 249982
2015-10-11 17:27:29 +00:00
Nico Weber
49e6bc024d
Remove an assert that's not true on invalid code.
...
r185773 added an assert that checked that a CXXUnresolvedConstructExpr either
has a valid rparen, or exactly one argument. This doesn't have to be true for
invalid inputs. Convert the assert to an if, and add a test for this case.
Found by SLi's afl bot.
llvm-svn: 225140
2015-01-04 20:32:12 +00:00