summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/ast-dump-decl-context-json.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Include the mangled name in -ast-dump=jsonAlex Richardson2019-11-151-0/+4
| | | | | | | | | | | | | | | | | | | | I am planning to use this feature to make update_cc_test_checks.py less fragile by obtaining the mangled names directly from -ast-dump=json. Currently, it uses c-index-test which ignores the -triple=, etc. arguments that are in the RUN: line and therefore does not generate checks for some targets. The AST dump tests were updated using the following command: `python $LLVM_BINDIR/gen_ast_dump_json_test.py --update --source $LLVM_SRC/clang/test/AST/*-json.*` Reviewers: aaron.ballman Reviewed By: aaron.ballman Subscribers: rsmith, MaskRay, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D69564
* Add more information to JSON AST dumping of source locations.Aaron Ballman2019-10-151-8/+39
| | | | | | This adds information about the offset within the source file to the given source location as well as information about the include file a location is from. These pieces of information allow for more efficient post-processing of JSON AST dumps. llvm-svn: 374921
* Generate parent context id from Decl* instead of DeclContext*.Aaron Ballman2019-09-041-0/+286
Because of multiple inheritance, a DeclContext pointer does not produce the same pointer representation as a Decl pointer that references the same AST Node. When dumping the parentDeclContextId field of a node, convert the pointer to Decl* first, so the id can be used to find the AST node it references. Patch by Bert Belder. llvm-svn: 370970
OpenPOWER on IntegriCloud