]> granicus.if.org Git - clang/commit
Add a reverse iterator to DeclStmt, and use it when building a CFG.
authorJordan Rose <jordan_rose@apple.com>
Fri, 20 Jul 2012 18:50:48 +0000 (18:50 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 20 Jul 2012 18:50:48 +0000 (18:50 +0000)
commitfd8b43596478b779b6777cb3a595e69d7856c378
treed41f1e4ff28a634d30fa5c977910a9378427874a
parentb379718fea4a3ce854e52cd06618412204cf171b
Add a reverse iterator to DeclStmt, and use it when building a CFG.

The CFG creates dummy DeclStmts with one Decl per statement, and it has
to do so from last to first in order to build the graph correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160560 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Stmt.h
lib/Analysis/CFG.cpp