summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/if-empty-body.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't warn for empty 'if' body if there is a macro that expands to nothing, e.g:Argyrios Kyrtzidis2010-11-191-24/+0
| | | | | | | | | if (condition) CALL(0); // empty macro but don't warn for empty body. Fixes rdar://8436021. llvm-svn: 119838
* Do not warn about empty bodies for 'if' statements if the body is expanded ↵Ted Kremenek2010-09-161-0/+8
| | | | | | | | from a macro. Fixes <rdar://problem/8436021>. llvm-svn: 114049
* 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
* improve error recovery handling broken 'then' or 'else' stmts in Chris Lattner2007-10-291-0/+7
| | | | | | | | if statements. This implements Sema/if-empty-body.c:f3, silencing a bogus secondary warning. It also improve the location info for the nullstmts created for recovery purposes. llvm-svn: 43440
* rename -parse-ast-print to -ast-printChris Lattner2007-10-111-1/+1
| | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
* Emit a warning when the body of an if block is a NullStmt.Anders Carlsson2007-10-101-0/+9
llvm-svn: 42840
OpenPOWER on IntegriCloud