summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2019-10-15 17:30:19 +0000
committerAaron Ballman <aaron@aaronballman.com>2019-10-15 17:30:19 +0000
commit943e5a44883539848588e33bffbe2a1773dc4b43 (patch)
tree79b2de4077cba412ff54695e55523f56c6fa46c7 /include
parent827afc80db6942421553c6a0613eae1a4f57f1bc (diff)
downloadclang-943e5a44883539848588e33bffbe2a1773dc4b43.tar.gz
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
Diffstat (limited to 'include')
-rw-r--r--include/clang/AST/JSONNodeDumper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/AST/JSONNodeDumper.h b/include/clang/AST/JSONNodeDumper.h
index 238e43aad7..5f34440b8b 100644
--- a/include/clang/AST/JSONNodeDumper.h
+++ b/include/clang/AST/JSONNodeDumper.h
@@ -141,6 +141,8 @@ class JSONNodeDumper
JOS.attribute(Key, Value);
}
+ void writeIncludeStack(PresumedLoc Loc, bool JustFirst = false);
+
// Writes the attributes of a SourceLocation object without.
void writeBareSourceLocation(SourceLocation Loc, bool IsSpelling);