Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025

Conversation

evelez7
Copy link
Member

@evelez7 evelez7 commented May 29, 2025

The HTML FileCheck was missing the RUN command. Fixing that revealed an error in the HTML check.

Forgot to add RUN for the test which revealed a problem with the test.
@llvmbot
Copy link
Member

llvmbot commented May 29, 2025

@llvm/pr-subscribers-clang-tools-extra

Author: Erick Velez (evelez7)

Changes

The HTML FileCheck was missing the RUN command. Fixing that revealed an error in the HTML check.


Full diff: https://github.com/llvm/llvm-project/pull/141976.diff

1 Files Affected:

  • (modified) clang-tools-extra/test/clang-doc/conversion_function.cpp (+2-2)
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>

@evelez7 evelez7 assigned evelez7 and unassigned evelez7 May 29, 2025
@evelez7 evelez7 requested a review from ilovepi May 29, 2025 16:28
Copy link
Contributor

ilovepi commented May 29, 2025

Jeez. We're so disciplined ... LGTM Assuming CI passes.

@evelez7
Copy link
Member Author

evelez7 commented May 29, 2025

CI passed besides the Linux test. Identical to what was discussed in #138065

@evelez7 evelez7 merged commit 260836d into llvm:main May 29, 2025
12 of 13 checks passed
@evelez7 evelez7 deleted the clang-doc-fix-conversion-html-test branch May 29, 2025 18:00
svkeerthy pushed a commit that referenced this pull request May 29, 2025
The HTML FileCheck was missing the RUN command. Fixing that revealed an
error in the HTML check.
google-yfyang pushed a commit to google-yfyang/llvm-project that referenced this pull request May 29, 2025
)

The HTML FileCheck was missing the RUN command. Fixing that revealed an
error in the HTML check.
sivan-shani pushed a commit to sivan-shani/llvm-project that referenced this pull request Jun 3, 2025
)

The HTML FileCheck was missing the RUN command. Fixing that revealed an
error in the HTML check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants