[clang-tools-extra] [clang-tidy] support different precisions (PR #130540)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 10 08:49:31 PDT 2025
================
@@ -91,8 +91,12 @@ struct MatchBuilder {
auto matchMathCall(const StringRef FunctionName,
const Matcher<clang::Expr> ArgumentMatcher) const {
+ auto HasAnyPrecisionName =
+ anyOf(hasName(FunctionName), hasName((FunctionName + "l").str()),
----------------
vbvictor wrote:
Consider using `matchers::matchesAnyListedName`
https://github.com/llvm/llvm-project/pull/130540
More information about the cfe-commits
mailing list