================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits