[PATCH] D52880: [clang-tidy] fix PR39167, bugprone-exception-escape hangs-up
Jonas Toth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 4 08:51:44 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE343789: [clang-tidy] fix PR39167, bugprone-exception-escape hangs-up (authored by JonasToth, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52880?vs=168262&id=168301#toc
Repository:
rL LLVM
https://reviews.llvm.org/D52880
Files:
clang-tidy/bugprone/ExceptionEscapeCheck.cpp
Index: clang-tidy/bugprone/ExceptionEscapeCheck.cpp
===================================================================
--- clang-tidy/bugprone/ExceptionEscapeCheck.cpp
+++ clang-tidy/bugprone/ExceptionEscapeCheck.cpp
@@ -186,6 +186,9 @@
}
void ExceptionEscapeCheck::registerMatchers(MatchFinder *Finder) {
+ if (!getLangOpts().CPlusPlus || !getLangOpts().CXXExceptions)
+ return;
+
Finder->addMatcher(
functionDecl(allOf(throws(unless(isIgnored(IgnoredExceptions))),
anyOf(isNoThrow(), cxxDestructorDecl(),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52880.168301.patch
Type: text/x-patch
Size: 552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181004/093e35b9/attachment-0001.bin>
More information about the cfe-commits
mailing list