commit | 564f1c74b6713ce952be8f683d3ae483ca626f7f | [log] [tgz] |
---|---|---|
author | Alexander Kornienko <alexfh@google.com> | Fri Jun 09 07:34:58 2017 +0000 |
committer | Alexander Kornienko <alexfh@google.com> | Fri Jun 09 07:34:58 2017 +0000 |
tree | 4c3c9a58c1afd5517fc259f8e1e84ee3086373a7 | |
parent | 4a60d370e8b85949699e730a569d3774baa2f4ce [diff] [blame] |
Revert "[clang-tidy] When" -fno-exceptions is used", this warning is better to be suppressed." This reverts commit r304949. https://reviews.llvm.org/D34002#775830 llvm-svn: 305057
diff --git a/clang-tools-extra/clang-tidy/misc/NoexceptMoveConstructorCheck.cpp b/clang-tools-extra/clang-tidy/misc/NoexceptMoveConstructorCheck.cpp index 2fdcf75..12a360f 100644 --- a/clang-tools-extra/clang-tidy/misc/NoexceptMoveConstructorCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/NoexceptMoveConstructorCheck.cpp
@@ -20,7 +20,7 @@ void NoexceptMoveConstructorCheck::registerMatchers(MatchFinder *Finder) { // Only register the matchers for C++11; the functionality currently does not // provide any benefit to other languages, despite being benign. - if (!getLangOpts().CPlusPlus11 || !getLangOpts().CXXExceptions) + if (!getLangOpts().CPlusPlus11) return; Finder->addMatcher(