Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit f66f473

Browse files
Add support for dyn_cast_or_null
1 parent ccff50c commit f66f473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/misc/UseFreeFunctionVariantsCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace clang::tidy::misc {
2020

2121
void UseFreeFunctionVariantsCheck::registerMatchers(MatchFinder *Finder) {
2222
Finder->addMatcher(cxxMemberCallExpr(on(expr().bind("base")),
23-
callee(cxxMethodDecl(hasAnyName("isa", "dyn_cast", "cast")))
23+
callee(cxxMethodDecl(hasAnyName("isa", "dyn_cast", "cast", "dyn_cast_or_null")))
2424
).bind("castCall"),
2525
this);
2626
}

0 commit comments

Comments
 (0)