summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/gen_ast_dump_json_test.py
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
commit27c7a9b157555e53fb3887e87a492f74fa8bcc56 (patch)
tree1136454856d43e17a301a1b62a6aa1bc1cc7aaa9 /clang/test/AST/gen_ast_dump_json_test.py
parent3de89f3416bfa78079136ea6566c8f82b1b64292 (diff)
downloadbcm5719-llvm-27c7a9b157555e53fb3887e87a492f74fa8bcc56.tar.gz
bcm5719-llvm-27c7a9b157555e53fb3887e87a492f74fa8bcc56.zip
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. llvm-svn: 374921
Diffstat (limited to 'clang/test/AST/gen_ast_dump_json_test.py')
-rw-r--r--clang/test/AST/gen_ast_dump_json_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/AST/gen_ast_dump_json_test.py b/clang/test/AST/gen_ast_dump_json_test.py
index f1c9801fb10..54a5109aacf 100644
--- a/clang/test/AST/gen_ast_dump_json_test.py
+++ b/clang/test/AST/gen_ast_dump_json_test.py
@@ -131,10 +131,10 @@ def main():
index = 0
for append_line in append_str.splitlines()[2:]:
if index == 0:
- out_str += '// CHECK: %s\n' %(append_line)
+ out_str += '// CHECK: %s\n' %(append_line.rstrip())
index += 1
else:
- out_str += '// CHECK-NEXT: %s\n' %(append_line)
+ out_str += '// CHECK-NEXT: %s\n' %(append_line.rstrip())
f.write(out_str)
OpenPOWER on IntegriCloud