Skip to content

Commit ecb8d2b

Browse files
evelez7svkeerthy
authored andcommitted
[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.
1 parent b53e545 commit ecb8d2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/test/clang-doc/conversion_function.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: find %t/ -regex ".*/[0-9A-F]*.yaml" -exec cat {} ";" | FileCheck %s --check-prefix=CHECK-YAML
55

66
// RUN: clang-doc --format=html --output=%t --executor=standalone %s
7-
// FileCheck %s --check-prefix=CHECK-HTML
7+
// RUN: FileCheck %s < %t/GlobalNamespace/MyStruct.html --check-prefix=CHECK-HTML
88

99
template <typename T>
1010
struct MyStruct {
@@ -14,5 +14,5 @@ struct MyStruct {
1414
// Output correct conversion names.
1515
// CHECK-YAML: Name: 'operator T'
1616

17-
// CHECK-HTML: <h3 id='{{[0-9A-F]*}}'>operator T</h3>
17+
// CHECK-HTML: <h3 id="{{[0-9A-F]*}}">operator T</h3>
1818
// CHECK-HTML: <p>public T operator T()</p>

0 commit comments

Comments
 (0)