[clang-tools-extra] [clang-tidy]avoid bugprone-unused-return-value false positive for assignment operator overloading (PR #84489)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 8 16:37:13 PST 2024
================
@@ -28,6 +30,11 @@ AST_MATCHER_P(FunctionDecl, isInstantiatedFrom, Matcher<FunctionDecl>,
return InnerMatcher.matches(InstantiatedFrom ? *InstantiatedFrom : Node,
Finder, Builder);
}
+
+AST_MATCHER_P(CXXMethodDecl, isOperatorOverloading,
+ llvm::SmallVector<OverloadedOperatorKind>, kinds) {
----------------
5chmidti wrote:
`Kinds`
https://github.com/llvm/llvm-project/pull/84489
More information about the cfe-commits
mailing list