summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/gen_ast_dump_json_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/AST/gen_ast_dump_json_test.py')
-rw-r--r--clang/test/AST/gen_ast_dump_json_test.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/AST/gen_ast_dump_json_test.py b/clang/test/AST/gen_ast_dump_json_test.py
index a7b98776de9..975039ead27 100644
--- a/clang/test/AST/gen_ast_dump_json_test.py
+++ b/clang/test/AST/gen_ast_dump_json_test.py
@@ -78,6 +78,12 @@ def main():
options = args.opts.split(' ')
filters = Set(args.filters.split(',')) if args.filters else Set([])
+ note = "// NOTE: CHECK lines have been autogenerated by " \
+ "gen_ast_dump_json_test.py"
+
+ if (args.filters):
+ note += "\n// using --filters=" + args.filters
+
cmd = [clang_binary, "-cc1"]
cmd.extend(options)
@@ -118,6 +124,7 @@ def main():
print("Writing json appended source file to %s." %(dest_path))
copyfile(args.source, dest_path)
with open(dest_path, "a") as f:
+ f.write("\n" + note + "\n")
for out_ast in out_asts:
append_str = json.dumps(out_ast, indent=1, ensure_ascii=False)
out_str = '\n\n'
OpenPOWER on IntegriCloud