[clang-tools-extra] [clang-tidy] add 'IgnoreMarcos' option to 'special-member-functions' check (PR #143550)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 22 23:55:20 PDT 2025
================
@@ -18,6 +18,12 @@ using namespace clang::ast_matchers;
namespace clang::tidy::cppcoreguidelines {
+namespace {
+AST_MATCHER(CXXRecordDecl, isInMacro) {
----------------
vbvictor wrote:
Yes, I was thinking lately about it.
I've seen some matchers use only `Node.getBeginLoc().isMacroID()` others use `Node.getBeginLoc().isMacroID() && Node.getEndLoc().isMacroID()` so we need to decide on the wanted behavior.
I guess we should place both `Begin` and `End` inside a macro
https://github.com/llvm/llvm-project/pull/143550
More information about the cfe-commits
mailing list