[clang-tools-extra] [clang-tidy] Support C++20 constinit in bugprone-dynamic-static-initializers (PR #174744)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 7 07:01:20 PST 2026


================
@@ -0,0 +1,56 @@
+// RUN: %check_clang_tidy -std=c++20 %s bugprone-dynamic-static-initializers %t -- -- -fno-threadsafe-statics
----------------
zeyi2 wrote:

I think this check is for headers. There was an existing header test file for it: https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/test/clang-tidy/checkers/bugprone/dynamic-static-initializers.hpp

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


More information about the cfe-commits mailing list