[cfe-commits] r41586 - /cfe/trunk/README.txt

Ted Kremenek kremenek at apple.com
Wed Aug 29 16:26:37 PDT 2007


Author: kremenek
Date: Wed Aug 29 18:26:37 2007
New Revision: 41586

URL: http://llvm.org/viewvc/llvm-project?rev=41586&view=rev
Log:
Added comments about -dump-cfg and -view-cfg modes for the clang driver.

Modified:
    cfe/trunk/README.txt

Modified: cfe/trunk/README.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/README.txt?rev=41586&r1=41585&r2=41586&view=diff

==============================================================================
--- cfe/trunk/README.txt (original)
+++ cfe/trunk/README.txt Wed Aug 29 18:26:37 2007
@@ -81,22 +81,31 @@
 
  * -E mode works the same way as GCC.
 
- * -Eonly mode does all preprocessing, but does not print the output, useful for
-   timing the preprocessor.
+ * -Eonly mode does all preprocessing, but does not print the output,
+     useful for timing the preprocessor.
  
- * -fsyntax-only is currently partially implemented, lacking some semantic
-   analysis (some errors and warnings are not produced).
+ * -fsyntax-only is currently partially implemented, lacking some
+     semantic analysis (some errors and warnings are not produced).
 
- * -parse-noop parses code without building an AST.  This is useful for timing
-   the cost of the parser without including AST building time.
+ * -parse-noop parses code without building an AST.  This is useful
+     for timing the cost of the parser without including AST building
+     time.
  
- * -parse-ast builds ASTs, but doesn't print them.  This is most useful for
-   timing AST building vs -parse-noop.
+ * -parse-ast builds ASTs, but doesn't print them.  This is most
+     useful for timing AST building vs -parse-noop.
  
  * -parse-ast-print pretty prints most expression and statements nodes.
 
- * -parse-ast-check checks that diagnostic messages that are expected are
-   reported and that those which are reported are expected.
+ * -parse-ast-check checks that diagnostic messages that are expected
+     are reported and that those which are reported are expected.
+
+ * -dump-cfg builds ASTs and then CFGs.  CFGs are then pretty-printed.
+
+ * -view-cfg builds ASTs and then CFGs.  CFGs are then visualized by
+     invoking Graphviz.
+
+     For more information on getting Graphviz to work with clang/LLVM,
+     see: http://llvm.org/docs/ProgrammersManual.html#ViewGraph
 
 
 III. Current advantages over GCC:





More information about the cfe-commits mailing list