================
@@ -168,6 +168,18 @@ static auto isNotOkStatusCall() {
"::absl::UnimplementedError", "::absl::UnknownError"))));
}
+static auto isPointerComparisonOperatorCall(std::string operator_name) {
+ using namespace ::clang::ast_matchers; // NOLINT: Too many names
+ return binaryOperator(
+ hasOperatorName(operator_name),
+ hasLHS(
+
anyOf(hasType(hasCanonicalType(pointerType(pointee(statusOrType())))),
----------------
jvoung wrote:
can the anyOf be deeper for just the (statusOrType, statusType) part? (if that
helps matching performance)?
https://github.com/llvm/llvm-project/pull/163875
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits