]> granicus.if.org Git - clang/commit
Added "PrinterHelper" interface (include/AST/PrinterHelper) that can
authorTed Kremenek <kremenek@apple.com>
Fri, 31 Aug 2007 21:30:12 +0000 (21:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 31 Aug 2007 21:30:12 +0000 (21:30 +0000)
commit42a509f6a4f71bb805cc4abbb26722a34dffddde
treee83f0720f45eace2047dfd7a4c3e59421e1a01c8
parentcd881d534517f09a2fae10445f9b865f49ccc6c8
Added "PrinterHelper" interface (include/AST/PrinterHelper) that can
be passed as an (optional) argument to StmtPrinter to customize
printing of AST nodes.

Used new PrinterHelper interface to enhance printing and visualization
of CFGs.  The CFGs now illustrate the semantic connectives between
statements and terminators, wheras in the previous printing certain
expressions would (visible) be printed multiple times to reflect which
expressions used the results of other expressions.

The end result is that the CFG is easier to read for flow of
expression values (following principles similar to the LLVM IR).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41651 91177308-0d34-0410-b5e6-96231b3b80d8
AST/CFG.cpp
AST/StmtPrinter.cpp
clang.xcodeproj/project.pbxproj
include/clang/AST/CFG.h
include/clang/AST/PrettyPrinter.h [new file with mode: 0644]
include/clang/AST/Stmt.h