[clang-tools-extra] 260836d - [clang-doc] fix FileCheck for conversion function HTML test (#141976)
via cfe-commits
cfe-commits at lists.llvm.org
Thu May 29 10:56:21 PDT 2025
Author: Erick Velez
Date: 2025-05-29T17:56:17Z
New Revision: 260836d91713f1b6dfeff532120aa3e4ef7b8285
URL: https://github.com/llvm/llvm-project/commit/260836d91713f1b6dfeff532120aa3e4ef7b8285
DIFF: https://github.com/llvm/llvm-project/commit/260836d91713f1b6dfeff532120aa3e4ef7b8285.diff
LOG: [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.
Added:
Modified:
clang-tools-extra/test/clang-doc/conversion_function.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/test/clang-doc/conversion_function.cpp b/clang-tools-extra/test/clang-doc/conversion_function.cpp
index bf97d85661346..0200a578219ee 100644
--- a/clang-tools-extra/test/clang-doc/conversion_function.cpp
+++ b/clang-tools-extra/test/clang-doc/conversion_function.cpp
@@ -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>
More information about the cfe-commits
mailing list