summaryrefslogtreecommitdiffstats
path: root/clang/Driver/ASTStreamers.h
Commit message (Collapse)AuthorAgeFilesLines
* Rename ASTStreamers.* -> ASTConsumers.*Chris Lattner2007-10-071-33/+0
| | | | llvm-svn: 42718
* Added support to clang driver to view ASTs using GraphViz. ThisTed Kremenek2007-09-191-0/+1
| | | | | | functionality is still preliminary. llvm-svn: 42152
* UninitialuzedValues now only tracks BlockVarDecls; obviating false positives ↵Ted Kremenek2007-09-171-0/+1
| | | | | | | | with globals and function parameters. llvm-svn: 42055
* switch the llvm emitter to ASTConsumer interface.Chris Lattner2007-09-161-0/+1
| | | | llvm-svn: 42013
* switch the various CFG-based stuff over to using ASTConsumer interface,Chris Lattner2007-09-151-10/+4
| | | | | | | this eliminates their dependence on the preprocessor and eliminates some duplicated code. llvm-svn: 41993
* convert ast printer and dumper ocver to ASTConsumer interface,Chris Lattner2007-09-151-2/+2
| | | | | | genericizing them and eliminating boilerplate code. llvm-svn: 41992
* add a new ASTConsumer consumer to simplify stuff in the driver.Chris Lattner2007-09-151-1/+1
| | | | | | Switch -parse-ast over to it. llvm-svn: 41991
* Added "Dead Stores", a flow-sensitive checker that checks for storesTed Kremenek2007-09-061-0/+2
| | | | | | | | | | to variables that are no longer live. This analysis is built on top of CFGs and the LiveVariables analysis. changes to driver: added driver option "-check-dead-stores" to run the analysis llvm-svn: 41754
* Added an early implementation of Live-Variables analysis built onTed Kremenek2007-09-061-0/+2
| | | | | | | | | | source-level CFGs. This code may change significantly in the near future as we explore different means to implement dataflow analyses. Added a driver option, -dump-live-variables, to view the output of live variable analysis. This output is very ALPHA; it will be improved shortly. llvm-svn: 41737
* Added GraphTraits to source-level CFGs (CFG and CFGBlock) to allowTed Kremenek2007-08-291-1/+3
| | | | | | | | | | | | | | | | | | | | (LLVM-provided) graph algorithms such as DFS and graph visualization to work effortless on source-level CFGs. Further cleanup on pretty printing of CFGs. CFGBlock::dump and CFGBlock::print now take the parent CFG as an argument. This allows CFGBlocks to print their own appropriate label indicating whether or not they are the Entry/Exit/IndirectGotoBlock without the CFG::print routine doing it instead. Added Graphviz visualization for CFGs: CFG::viewCFG. This employs the GraphTraits just implemented. Added "-view-cfg" mode the to clang driver. This is identical to "-dump-cfg" except that it calls Graphviz to visualize the CFGs instead of dumping them to the terminal. llvm-svn: 41580
* Added CFG infrastructure (CFG.cpp and CFG.h) for clang ASTs.Ted Kremenek2007-08-211-0/+1
| | | | | | | | | | | | Added builder code to translate ASTs to CFGs. This currently supports if, return, and non-control flow statements. Added pretty-printer to debug CFGs. Added a "-dump-cfg" option to the clang driver to dump CFGs for code sent through the frontend. llvm-svn: 41252
* add a new AST dumper interface (E->dump()). This dumps outChris Lattner2007-08-081-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | the AST in a structural, non-pretty, form useful for understanding the AST. It isn't quite done yet, but is already somewhat useful. For this example: int test(short X, long long Y) { return X < ((100)); } we get (with -parse-ast-dump): int test(short X, long long Y) (CompoundStmt 0x2905ce0 (ReturnStmt 0x2905cd0 (BinaryOperator 0x2905cb0 '<' (ImplicitCastExpr 0x2905ca0 (DeclRefExpr 0x2905c20 Decl='X' 0x2905bb0)) (ParenExpr 0x2905c80 (ParenExpr 0x2905c60 (IntegerLiteral 0x2905c40 100)))))) llvm-svn: 40954
* Submitted by: Bill WendlingBill Wendling2007-06-231-0/+30
- Separate out the AST streamers from the clang.cpp file into their very own special files. llvm-svn: 39676
OpenPOWER on IntegriCloud