Don't warn for empty 'if' body if there is a macro that expands to nothing, e.g:
commitb6958597da9c939fad601668efd28c8cff34b874
authorArgiris Kirtzidis <akyrtzi@gmail.com>
Fri, 19 Nov 2010 20:54:25 +0000 (19 20:54 +0000)
committerArgiris Kirtzidis <akyrtzi@gmail.com>
Fri, 19 Nov 2010 20:54:25 +0000 (19 20:54 +0000)
tree1c8c6e68f978b9b156704e77c31beb8bf573b845
parent9baedeaa72f47f7978519bdfe6ef4ec6c7d94147
Don't warn for empty 'if' body if there is a macro that expands to nothing, e.g:

  if (condition)
    CALL(0); // empty macro but don't warn for empty body.

Fixes rdar://8436021.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119838 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/AST/Stmt.h
include/clang/Lex/Preprocessor.h
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/AST/Stmt.cpp
lib/Lex/PPMacroExpansion.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/SemaCXX/if-empty-body.cpp [moved from test/Sema/if-empty-body.c with 75% similarity]