[clang-tools-extra] [clang-tidy] Option to ignore anonymous namespaces in avoid-non-const-global-variables (PR #93827)

Pascal Jungblut via cfe-commits cfe-commits at lists.llvm.org
Fri May 31 03:04:09 PDT 2024


================
@@ -1,29 +1,39 @@
-// RUN: %check_clang_tidy %s cppcoreguidelines-avoid-non-const-global-variables %t
+// RUN: %check_clang_tidy %s -check-suffix=DEFAULT cppcoreguidelines-avoid-non-const-global-variables %t
+// RUN: %check_clang_tidy %s -check-suffix=NAMESPACE cppcoreguidelines-avoid-non-const-global-variables %t -- \
----------------
pascalj wrote:

Thanks for this hint, it made the checks much easier. It now tests only for the cases where the configuration differs.

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


More information about the cfe-commits mailing list