hanchenye-llvm-project/clang/AST
Ted Kremenek bbad8ce2e7 Fixed bug where the CFG would fail to build when an 'if' statement had
an empty then or else block (or contained only ';' statements).

For example, we now handle the following:

int empty_else() { if (0) { int a; } else ; }
int empty_then() { if (0) ; else { int a; } }

Thanks to Nico Weber for spotting this problem.

llvm-svn: 41617
2007-08-30 18:13:31 +00:00
..
ASTContext.cpp Polish yesterday's Array/ConstantArray/VariableArray rewrite, removing a couple FIXME's. 2007-08-30 18:10:14 +00:00
Builtins.cpp Add initial support for constant CFStrings. 2007-08-17 05:31:46 +00:00
CFG.cpp Fixed bug where the CFG would fail to build when an 'if' statement had 2007-08-30 18:13:31 +00:00
Decl.cpp Fix "no newline at end of file" warnings. Patch contributed by 2007-07-12 15:43:07 +00:00
Expr.cpp implement initial sema support for __builtin_offsetof 2007-08-30 17:45:32 +00:00
ExprCXX.cpp Implementation of child_begin/child_end for C++ expressions. 2007-08-24 20:21:10 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
Stmt.cpp Fixed bug for CaseStmt where the child_begin/child_end methods were not 2007-08-30 16:50:46 +00:00
StmtDumper.cpp Teach the stmtdumper to dump location/range info when a SourceMgr is available. 2007-08-30 06:17:34 +00:00
StmtPrinter.cpp implement pretty printing of offsetof 2007-08-30 17:59:59 +00:00
Type.cpp Polish yesterday's Array/ConstantArray/VariableArray rewrite, removing a couple FIXME's. 2007-08-30 18:10:14 +00:00