Skip to content

Commit 2a789f3

Browse files
negativlocalspook
andauthored
Update clang-tools-extra/clang-tidy/bugprone/EmptyCatchCheck.cpp
Co-authored-by: Victor Chernyakin <[email protected]>
1 parent ac4a86a commit 2a789f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/bugprone/EmptyCatchCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void EmptyCatchCheck::registerMatchers(MatchFinder *Finder) {
9090
Finder->addMatcher(
9191
cxxCatchStmt(unless(isExpansionInSystemHeader()), unless(isInMacro()),
9292
unless(hasCaughtType(IgnoredExceptionType)),
93-
unless(hasAncestor(cxxDestructorDecl())),
93+
unless(hasDeclContext(cxxDestructorDecl())),
9494
hasHandler(compoundStmt(
9595
statementCountIs(0),
9696
unless(hasAnyTextFromList(IgnoreCatchWithKeywords)))))

0 commit comments

Comments
 (0)