[clang-doc] fix FileCheck for conversion function HTML test (#141976)

The HTML FileCheck was missing the RUN command. Fixing that revealed an
error in the HTML check.
This commit is contained in:
Erick Velez
2025-05-29 17:56:17 +00:00
committed by GitHub
parent ef11bdc7fe
commit 260836d917

View File

@@ -4,7 +4,7 @@
// RUN: find %t/ -regex ".*/[0-9A-F]*.yaml" -exec cat {} ";" | FileCheck %s --check-prefix=CHECK-YAML
// RUN: clang-doc --format=html --output=%t --executor=standalone %s
// FileCheck %s --check-prefix=CHECK-HTML
// RUN: FileCheck %s < %t/GlobalNamespace/MyStruct.html --check-prefix=CHECK-HTML
template <typename T>
struct MyStruct {
@@ -14,5 +14,5 @@ struct MyStruct {
// Output correct conversion names.
// CHECK-YAML: Name: 'operator T'
// CHECK-HTML: <h3 id='{{[0-9A-F]*}}'>operator T</h3>
// CHECK-HTML: <h3 id="{{[0-9A-F]*}}">operator T</h3>
// CHECK-HTML: <p>public T operator T()</p>