[libcxx-commits] [clang-tools-extra] [libcxx] [clang-tools-extra]: Check for static in constexpr (PR #175814)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 13 11:05:43 PST 2026


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 origin/main HEAD --extensions cpp,h -- clang-tools-extra/clang-tidy/misc/StaticInConstexprCheck.cpp clang-tools-extra/clang-tidy/misc/StaticInConstexprCheck.h clang-tools-extra/test/clang-tidy/checkers/misc/static-in-constexpr.cpp clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/clang-tools-extra/clang-tidy/misc/StaticInConstexprCheck.cpp b/clang-tools-extra/clang-tidy/misc/StaticInConstexprCheck.cpp
index 5427f7e80..7dbf5edde 100644
--- a/clang-tools-extra/clang-tidy/misc/StaticInConstexprCheck.cpp
+++ b/clang-tools-extra/clang-tidy/misc/StaticInConstexprCheck.cpp
@@ -36,4 +36,4 @@ void StaticInConstexprCheck::check(const MatchFinder::MatchResult &Result) {
   }
 }
 
-} // namespace clang::tidy::misc
\ No newline at end of file
+} // namespace clang::tidy::misc

``````````

</details>


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


More information about the libcxx-commits mailing list