diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/utils/Matchers.h')
-rw-r--r-- | clang-tools-extra/clang-tidy/utils/Matchers.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clang-tools-extra/clang-tidy/utils/Matchers.h b/clang-tools-extra/clang-tidy/utils/Matchers.h index 0ab5ec712e4..834c06b2861 100644 --- a/clang-tools-extra/clang-tidy/utils/Matchers.h +++ b/clang-tools-extra/clang-tidy/utils/Matchers.h @@ -23,22 +23,6 @@ AST_MATCHER(QualType, isExpensiveToCopy) { return IsExpensive && *IsExpensive; } -AST_MATCHER(FunctionDecl, isNoThrow) { - const auto *FnTy = Node.getType()->getAs<FunctionProtoType>(); - - // If the function does not have a prototype, then it is assumed to be a - // throwing function (as it would if the function did not have any exception - // specification). - if (!FnTy) - return false; - - // Assume the best for any unresolved exception specification. - if (isUnresolvedExceptionSpec(FnTy->getExceptionSpecType())) - return true; - - return FnTy->isNothrow(Node.getASTContext()); -} - } // namespace matchers } // namespace tidy } // namespace clang |