summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Driver/CC1Options.td
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-05-13 21:39:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-05-13 21:39:55 +0000
commit2ce598a44a353f159157d780721c6a08b4d35c60 (patch)
tree58eca5642aefaa29c6a56ab90818e3b08d30dddd /clang/include/clang/Driver/CC1Options.td
parentaeeeb37e373700350472d40cf0a0969b070be0a0 (diff)
downloadbcm5719-llvm-2ce598a44a353f159157d780721c6a08b4d35c60.tar.gz
bcm5719-llvm-2ce598a44a353f159157d780721c6a08b4d35c60.zip
Introduce the ability to dump the AST to JSON.
This adds the -ast-dump=json cc1 flag (in addition to -ast-dump=default, which is the default if no dump format is specified), as well as some initial AST dumping functionality and tests. llvm-svn: 360622
Diffstat (limited to 'clang/include/clang/Driver/CC1Options.td')
-rw-r--r--clang/include/clang/Driver/CC1Options.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/CC1Options.td b/clang/include/clang/Driver/CC1Options.td
index e452c01842d..b9b6677853f 100644
--- a/clang/include/clang/Driver/CC1Options.td
+++ b/clang/include/clang/Driver/CC1Options.td
@@ -557,8 +557,14 @@ def ast_list : Flag<["-"], "ast-list">,
HelpText<"Build ASTs and print the list of declaration node qualified names">;
def ast_dump : Flag<["-"], "ast-dump">,
HelpText<"Build ASTs and then debug dump them">;
+def ast_dump_EQ : Joined<["-"], "ast-dump=">,
+ HelpText<"Build ASTs and then debug dump them in the specified format. "
+ "Supported formats include: default, json">;
def ast_dump_all : Flag<["-"], "ast-dump-all">,
HelpText<"Build ASTs and then debug dump them, forcing deserialization">;
+def ast_dump_all_EQ : Joined<["-"], "ast-dump-all=">,
+ HelpText<"Build ASTs and then debug dump them in the specified format, "
+ "forcing deserialization. Supported formats include: default, json">;
def templight_dump : Flag<["-"], "templight-dump">,
HelpText<"Dump templight information to stdout">;
def ast_dump_lookups : Flag<["-"], "ast-dump-lookups">,
OpenPOWER on IntegriCloud