[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
================
@@ -16,9 +15,12 @@ using namespace clang::ast_matchers;
namespace clang::tidy::cppcoreguidelines {
void AvoidNonConstGlobalVariablesCheck::registerMatchers(MatchFinder *Finder) {
+ auto NamespaceMatcher = Options.get("AllowAnonymousNamespace", false)
----------------
PiotrZSL wrote:
Options.get should be called from constructor and saved into class member.
storeOption is missing or not updated.
https://github.com/llvm/llvm-project/pull/93827
More information about the cfe-commits
mailing list