summaryrefslogtreecommitdiff
path: root/README.txt
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-08-29 23:26:37 +0000
committerTed Kremenek <kremenek@apple.com>2007-08-29 23:26:37 +0000
commita01a1eeda2ea2f5abd13aa341be43f37be7ebd22 (patch)
treebd6a49b5684c58f4e6f77c69f18ce7f14fe59a54 /README.txt
parent9cffe7366ea3beb33c2d58f43a8c3a04c1873e11 (diff)
downloadclang-a01a1eeda2ea2f5abd13aa341be43f37be7ebd22.tar.gz
clang-a01a1eeda2ea2f5abd13aa341be43f37be7ebd22.tar.bz2
clang-a01a1eeda2ea2f5abd13aa341be43f37be7ebd22.tar.xz
Added comments about -dump-cfg and -view-cfg modes for the clang driver.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt29
1 files changed, 19 insertions, 10 deletions
diff --git a/README.txt b/README.txt
index cbba8425bd..41bca026c9 100644
--- a/README.txt
+++ b/README.txt
@@ -81,22 +81,31 @@ II. Usage of clang driver:
* -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: