]> granicus.if.org Git - clang/commit
Add more information to JSON AST dumping of source locations.
authorAaron Ballman <aaron@aaronballman.com>
Tue, 15 Oct 2019 17:30:19 +0000 (17:30 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 15 Oct 2019 17:30:19 +0000 (17:30 +0000)
commit943e5a44883539848588e33bffbe2a1773dc4b43
tree79b2de4077cba412ff54695e55523f56c6fa46c7
parent827afc80db6942421553c6a0613eae1a4f57f1bc
Add more information to JSON AST dumping of source locations.

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374921 91177308-0d34-0410-b5e6-96231b3b80d8
26 files changed:
include/clang/AST/JSONNodeDumper.h
lib/AST/JSONNodeDumper.cpp
test/AST/Inputs/json-dump-include.h [new file with mode: 0644]
test/AST/ast-dump-comment-json.cpp
test/AST/ast-dump-decl-context-json.cpp
test/AST/ast-dump-decl-json.c
test/AST/ast-dump-decl-json.m
test/AST/ast-dump-enum-json.cpp
test/AST/ast-dump-expr-json.c
test/AST/ast-dump-expr-json.cpp
test/AST/ast-dump-expr-json.m
test/AST/ast-dump-funcs-json.cpp
test/AST/ast-dump-if-json.cpp
test/AST/ast-dump-macro-json.c
test/AST/ast-dump-namespace-json.cpp
test/AST/ast-dump-record-definition-data-json.cpp
test/AST/ast-dump-records-json.cpp
test/AST/ast-dump-stmt-json.c
test/AST/ast-dump-stmt-json.cpp
test/AST/ast-dump-stmt-json.m
test/AST/ast-dump-template-decls-json.cpp
test/AST/ast-dump-temporaries-json.cpp
test/AST/ast-dump-types-json.cpp
test/AST/gen_ast_dump_json_test.py
test/AST/multistep-explicit-cast-json.c
test/AST/multistep-explicit-cast-json.cpp