diff options
author | Erick Velez <erickvelez7@gmail.com> | 2025-07-11 13:39:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-11 13:39:41 -0700 |
commit | 94bb9e12ec4ec243aac747910c5ae6359f354642 (patch) | |
tree | 3494cf33e332f82171fe77379ac4c1fd1c162b3a /clang-tools-extra/test/clang-doc/json/nested-namespace.cpp | |
parent | 136558bab23af94fd23b9b8ce39632085b21a4ca (diff) | |
download | llvm-94bb9e12ec4ec243aac747910c5ae6359f354642.zip llvm-94bb9e12ec4ec243aac747910c5ae6359f354642.tar.gz llvm-94bb9e12ec4ec243aac747910c5ae6359f354642.tar.bz2 |
[clang-doc] Serialize record files with mangled name (#148021)
This patch changes JSON file serialization. Now, files are serialized
to a single directory instead of nesting them based on namespaces. The
global namespace retains the "index.json" name.
This solves the problem of class template specializations being serialized to the
same file as its base template. This is also planned as part of
future integration with the Mustache generator which will consume the JSON files.
Diffstat (limited to 'clang-tools-extra/test/clang-doc/json/nested-namespace.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-doc/json/nested-namespace.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/test/clang-doc/json/nested-namespace.cpp b/clang-tools-extra/test/clang-doc/json/nested-namespace.cpp index 9b176fe..54f95c4 100644 --- a/clang-tools-extra/test/clang-doc/json/nested-namespace.cpp +++ b/clang-tools-extra/test/clang-doc/json/nested-namespace.cpp @@ -1,7 +1,7 @@ // RUN: rm -rf %t && mkdir -p %t // RUN: clang-doc --output=%t --format=json --executor=standalone %s -// RUN: FileCheck %s < %t/nested/index.json --check-prefix=NESTED -// RUN: FileCheck %s < %t/nested/inner/index.json --check-prefix=INNER +// RUN: FileCheck %s < %t/nested.json --check-prefix=NESTED +// RUN: FileCheck %s < %t/inner.json --check-prefix=INNER namespace nested { int Global; |