summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-condition.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Accept braced-init-lists in conditions, and, in passing, dramatically improveRichard Smith2012-02-221-1/+5
| | | | | | the diagnostic for using a parenthesized direct-initializer in a condition. llvm-svn: 151137
* Generalize -Wempty-body: warn when statement body is empty (closes: PR11329)Dmitri Gribenko2012-02-141-1/+1
| | | | | | | | | | | | | | * if, switch, range-based for: warn if semicolon is on the same line. * for, while: warn if semicolon is on the same line and either next statement is compound statement or next statement has more indentation. Replacing the semicolon with {} or moving the semicolon to the next line will always silence the warning. Tests from SemaCXX/if-empty-body.cpp merged into SemaCXX/warn-empty-body.cpp. llvm-svn: 150515
* Eliminate the "minimal" and printing parser actions, which only everDouglas Gregor2010-07-261-2/+2
| | | | | | | worked for C anyway. Also kills the -cc1 options -parse-noop and -parse-print-callbacks. llvm-svn: 109392
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Add svn:eol-style=native to some filesCedric Venet2009-02-141-11/+11
| | | | | | Correct two files with inconsistent lines endings. llvm-svn: 64564
* Fix test case.Argyrios Kyrtzidis2008-09-091-1/+1
| | | | llvm-svn: 56012
* Implement parser support for the 'condition' part of C++ ↵Argyrios Kyrtzidis2008-09-091-0/+11
selection-statements and iteration-statements (if/switch/while/for). Add new 'ActOnCXXConditionDeclarationExpr' action, called when the 'condition' is a declaration instead of an expression. llvm-svn: 56007
OpenPOWER on IntegriCloud