[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 12 07:26:47 PDT 2025


================
@@ -0,0 +1,290 @@
+// RUN: %check_clang_tidy -std=c++11 -check-suffixes=,CPP11 %s bugprone-conflicting-global-accesses %t
----------------
ConcreteCactus wrote:

The checker flags some C++11 specific errors that shouldn't be flagged in later versions of the standard. (e.g. bitshift operators had their order of evaluation defined in C++17) Hence the argument. The default value to `-std` is `C++11-or-later`, which is not quite what I need. But I agree that the checker runs are missing a general case, so I'll change the `C++17` ones to `C++17-or-later`.

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


More information about the cfe-commits mailing list