[all-commits] [llvm/llvm-project] 451d05: [clang] Fix JSON AST output when a filter is used
William Woodruff via All-commits
all-commits at lists.llvm.org
Sat Oct 9 19:16:02 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 451d0596d70689190b5ac911ae3ab9fc4c1d7485
https://github.com/llvm/llvm-project/commit/451d0596d70689190b5ac911ae3ab9fc4c1d7485
Author: william woodruff <william at yossarian.net>
Date: 2021-10-10 (Sun, 10 Oct 2021)
Changed paths:
M clang/lib/Frontend/ASTConsumers.cpp
M clang/test/AST/ast-dump-comment-json.cpp
M clang/test/AST/ast-dump-decl-context-json.cpp
M clang/test/AST/ast-dump-decl-json.c
M clang/test/AST/ast-dump-decl-json.m
M clang/test/AST/ast-dump-enum-json.cpp
M clang/test/AST/ast-dump-expr-json.c
M clang/test/AST/ast-dump-expr-json.cpp
M clang/test/AST/ast-dump-expr-json.m
M clang/test/AST/ast-dump-file-line-json.c
M clang/test/AST/ast-dump-funcs-json.cpp
M clang/test/AST/ast-dump-if-json.cpp
M clang/test/AST/ast-dump-macro-json.c
M clang/test/AST/ast-dump-namespace-json.cpp
M clang/test/AST/ast-dump-record-definition-data-json.cpp
M clang/test/AST/ast-dump-records-json.cpp
M clang/test/AST/ast-dump-stmt-json.c
M clang/test/AST/ast-dump-stmt-json.cpp
M clang/test/AST/ast-dump-stmt-json.m
M clang/test/AST/ast-dump-template-decls-json.cpp
M clang/test/AST/ast-dump-temporaries-json.cpp
M clang/test/AST/ast-dump-types-json.cpp
M clang/test/AST/gen_ast_dump_json_test.py
Log Message:
-----------
[clang] Fix JSON AST output when a filter is used
Without this, the combination of `-ast-dump=json` and `-ast-dump-filter FILTER` produces invalid JSON: the first line is a string that says `Dumping $SOME_DECL_NAME: `.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D108441
More information about the All-commits
mailing list