From 4db2f3ac89b1e62af4893b647d77f3ab1f390066 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 12:53:07 -0700 Subject: [clang-doc] refactor JSON for better Mustache compatibility (#149588) This patch contains changes for the JSON generator that will enable compatibility with Mustache templates, like booleans to check for the existence and bounds of arrays to avoid duplication. --- clang-tools-extra/test/clang-doc/json/nested-namespace.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang-tools-extra/test/clang-doc/json/nested-namespace.cpp') 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 54f95c4..255e540 100644 --- a/clang-tools-extra/test/clang-doc/json/nested-namespace.cpp +++ b/clang-tools-extra/test/clang-doc/json/nested-namespace.cpp @@ -12,6 +12,8 @@ namespace nested { // NESTED: "Variables": [ // NESTED-NEXT: { +// NESTED-NEXT: "End": true, +// NESTED-NEXT: "InfoType": "variable", // NESTED-NEXT: "IsStatic": false, // NESTED-NEXT: "Location": { // NESTED-NEXT: "Filename": "{{.*}}nested-namespace.cpp", @@ -24,6 +26,8 @@ namespace nested { // INNER: "Variables": [ // INNER-NEXT: { +// INNER-NEXT: "End": true, +// INNER-NEXT: "InfoType": "variable", // INNER-NEXT: "IsStatic": false, // INNER-NEXT: "Location": { // INNER-NEXT: "Filename": "{{.*}}nested-namespace.cpp", -- cgit v1.1