Files
clang-p2996/clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp
Erick Velez 8a905baeb4 [clang-doc] add tags to Mustache namespace template (#142045)
namespace-template.mustache only rendered placeholder text. Enum and
record tags were added to the template. Now, we can render an index.html
for the global namespace and other namespaces.

Added tests and deleted some of the disabled unit tests.
2025-06-04 10:09:36 -07:00

14 lines
471 B
C++

// RUN: rm -rf %t && mkdir -p %t
// RUN: clang-doc --format=mustache --output=%t --executor=standalone %s
// RUN: FileCheck %s < %t/MyNamespace/index.html
namespace MyNamespace {
class Foo;
}
// CHECK: <ul class="class-container">
// CHECK-NEXT: <li id="{{[0-9A-F]*}}" style="max-height: 40px;">
// CHECK-NEXT: <a href="Foo.html"><pre><code class="language-cpp code-clang-doc" >class Foo</code></pre></a>
// CHECK-NEXT: </li>
// CHECK-NEXT: </ul>