diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2019-06-19 15:24:06 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2019-06-19 15:24:06 +0000 |
| commit | 7556615a9d0b64d737a66986f875a61c1def99bc (patch) | |
| tree | f13ff4d33165de840ebc6e25412cfe7aebc1e6e0 /clang/test/AST/ast-dump-funcs-json.cpp | |
| parent | cdc0236e3a530d83f2910ecf910171664ae6cefb (diff) | |
| download | bcm5719-llvm-7556615a9d0b64d737a66986f875a61c1def99bc.tar.gz bcm5719-llvm-7556615a9d0b64d737a66986f875a61c1def99bc.zip | |
Change the way we output templates for JSON AST dumping and dump information about template arguments.
Previously, we attempted to write out template parameters and specializations to their own array, but due to the architecture of the ASTNodeTraverser, this meant that other nodes were not being written out. This now follows the same behavior as the regular AST dumper and puts all the (correct) information into the "inner" array. When we correct the AST node traverser itself, we can revisit splitting this information into separate arrays again.
llvm-svn: 363819
Diffstat (limited to 'clang/test/AST/ast-dump-funcs-json.cpp')
| -rw-r--r-- | clang/test/AST/ast-dump-funcs-json.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/AST/ast-dump-funcs-json.cpp b/clang/test/AST/ast-dump-funcs-json.cpp index b72e26d575f..b69a6e20ca3 100644 --- a/clang/test/AST/ast-dump-funcs-json.cpp +++ b/clang/test/AST/ast-dump-funcs-json.cpp @@ -906,7 +906,7 @@ int main() { // CHECK-NEXT: } // CHECK-NEXT: }, // CHECK-NEXT: "name": "Test12", -// CHECK-NEXT: "templateParams": [ +// CHECK-NEXT: "inner": [ // CHECK-NEXT: { // CHECK-NEXT: "id": "0x{{.*}}", // CHECK-NEXT: "kind": "TemplateTypeParmDecl", @@ -932,9 +932,7 @@ int main() { // CHECK-NEXT: "tagUsed": "typename", // CHECK-NEXT: "depth": 0, // CHECK-NEXT: "index": 0 -// CHECK-NEXT: } -// CHECK-NEXT: ], -// CHECK-NEXT: "inner": [ +// CHECK-NEXT: }, // CHECK-NEXT: { // CHECK-NEXT: "id": "0x{{.*}}", // CHECK-NEXT: "kind": "FunctionDecl", |

