[clang] [clang][test] Improve unit tests for Fixed point AST matchers. (PR #134398)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 4 08:24:50 PDT 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp clang/unittests/ASTMatchers/ASTMatchersTest.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h
index 5f8bdf7ec..d74019485 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.h
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.h
@@ -291,13 +291,15 @@ testing::AssertionResult notMatchesWithOpenMP51(const Twine &Code,
 
 template <typename T>
 testing::AssertionResult matchesWithFixedpoint(const std::string &Code,
-                                           const T &AMatcher) {
-  return matchesConditionally(Code, AMatcher, true, "-ffixed-point", FileContentMappings(), "input.c");
+                                               const T &AMatcher) {
+  return matchesConditionally(Code, AMatcher, true, "-ffixed-point",
+                              FileContentMappings(), "input.c");
 }
 template <typename T>
 testing::AssertionResult notMatchesWithFixedpoint(const std::string &Code,
-                                              const T &AMatcher) {
-  return matchesConditionally(Code, AMatcher, false, "-ffixed-point", FileContentMappings(), "input.c");
+                                                  const T &AMatcher) {
+  return matchesConditionally(Code, AMatcher, false, "-ffixed-point",
+                              FileContentMappings(), "input.c");
 }
 
 template <typename T>

``````````

</details>


https://github.com/llvm/llvm-project/pull/134398


More information about the cfe-commits mailing list