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

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 07:28:26 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 -- \
----------------
PiotrZSL wrote:

use -check-suffixes=,NAMESPACE instead of duplicating all CHECK-MESSGAES or adding DEFAULT

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


More information about the cfe-commits mailing list