We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac4a86a commit 2a789f3Copy full SHA for 2a789f3
clang-tools-extra/clang-tidy/bugprone/EmptyCatchCheck.cpp
@@ -90,7 +90,7 @@ void EmptyCatchCheck::registerMatchers(MatchFinder *Finder) {
90
Finder->addMatcher(
91
cxxCatchStmt(unless(isExpansionInSystemHeader()), unless(isInMacro()),
92
unless(hasCaughtType(IgnoredExceptionType)),
93
- unless(hasAncestor(cxxDestructorDecl())),
+ unless(hasDeclContext(cxxDestructorDecl())),
94
hasHandler(compoundStmt(
95
statementCountIs(0),
96
unless(hasAnyTextFromList(IgnoreCatchWithKeywords)))))
0 commit comments