[PATCH]ast-dump: add -ast-dump-no-include option

Li Jinpei via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 13 04:55:20 PDT 2017


Add an option, -ast-dump-no-include, to clang and clang-check. Usage 
example:

clang++ -Xclang -ast-dump -Xclang -ast-dump-no-include -fsyntax-only 
test.cpp

clang-check -ast-print -ast-dump-no-include test.cpp

This option work with  -ast-dump, -ast-dump-lookups or -ast-print to not 
show decls from included headers. This can be useful if you don't want 
decls from headers mess up ast-dump outputs.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-ast-dump-no-include-option.patch
Type: text/x-patch
Size: 12286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170813/4c349fec/attachment.bin>


More information about the cfe-commits mailing list