[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 21 04:25:24 PDT 2025
================
@@ -45,11 +53,12 @@ SpecialMemberFunctionsCheck::getCheckTraversalKind() const {
}
void SpecialMemberFunctionsCheck::registerMatchers(MatchFinder *Finder) {
- auto IsNotImplicitOrDeleted = anyOf(unless(isImplicit()), isDeleted());
+ const auto IsNotImplicitOrDeleted = anyOf(unless(isImplicit()), isDeleted());
+ const ast_matchers::internal::Matcher<CXXRecordDecl> Anything = anything();
----------------
5chmidti wrote:
nit: no need to declare this variable, just use anything() diectly
https://github.com/llvm/llvm-project/pull/143550
More information about the cfe-commits
mailing list