You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[gen_ast_dump_json_test.py] Allow updating multiple files in one go
With this change it is possible to update all JSON dump tests using the
following command:
python $LLVM_BINDIR/gen_ast_dump_json_test.py --update --source $LLVM_SRC/clang/test/AST/*-json.*
See https://reviews.llvm.org/D70119
Copy file name to clipboardExpand all lines: clang/test/AST/gen_ast_dump_json_test.py
+34-26Lines changed: 34 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,9 @@ def main():
68
68
parser=argparse.ArgumentParser()
69
69
parser.add_argument("--clang", help="The clang binary (could be a relative or absolute path)",
70
70
action="store", default=default_clang_path())
71
-
parser.add_argument("--source", help="the source file. Command used to generate the json will be of the format <clang> -cc1 -ast-dump=json <opts> <source>",
72
-
action="store", required=True)
71
+
parser.add_argument("--source", help="the source file(s). Without --update, the command used to generate the JSON "
72
+
"will be of the format <clang> -cc1 -ast-dump=json <opts> <source>",
0 commit comments