summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-condition.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Cleaning up the self initialization checker.Richard Trieu2012-10-011-4/+5
| | | | | | | | | | | -Allow Sema to do more processing on the initial Expr before checking it. -Remove the special conditions in HandleExpr() -Move the code so that only one call site is needed. -Removed the function from Sema and only call it locally. -Warn on potentially evaluated reference variables, not just casts to r-values. -Update tests. llvm-svn: 164951
* Update parser's disambiguation to cope with braced function-style casts inRichard Smith2012-02-231-4/+4
| | | | | | | | | C++11, and with braced-init-list initializers in conditions. This exposed an ambiguity with enum underlying types versus bitfields, which we resolve by treating 'enum E : T {' as always defining an enumeration (even if it would only successfully parse as a bitfield). This appears to be g++ compatible. llvm-svn: 151227
* Accept braced-init-lists in conditions, and, in passing, dramatically improveRichard Smith2012-02-221-0/+37
the diagnostic for using a parenthesized direct-initializer in a condition. llvm-svn: 151137
OpenPOWER on IntegriCloud