[clang-tools-extra] [clang-tidy] Allow thread-local variables in avoid-non-const-global-variables (PR #164442)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 22 05:56:15 PDT 2025
================
@@ -316,6 +316,11 @@ Changes in existing checks
an additional matcher that generalizes the copy-and-swap idiom pattern
detection.
+- Improved :doc:`cppcoreguidelines-avoid-non-const-global-variables
+ <clang-tidy/checks/cppcoreguidelines/avoid-non-const-global-variables>` check
+ by adding a new option ``AllowThreadLocal`` that suppresses warnings on
----------------
Lancern wrote:
Updated.
https://github.com/llvm/llvm-project/pull/164442
More information about the cfe-commits
mailing list