10 #include "../utils/Matchers.h" 11 #include "clang/AST/ASTContext.h" 12 #include "clang/ASTMatchers/ASTMatchFinder.h" 20 void ThrownExceptionTypeCheck::registerMatchers(MatchFinder *Finder) {
21 if (!getLangOpts().CPlusPlus)
25 cxxThrowExpr(has(ignoringParenImpCasts(
26 cxxConstructExpr(hasDeclaration(cxxConstructorDecl(
27 isCopyConstructor(), unless(isNoThrow()))))
32 void ThrownExceptionTypeCheck::check(
const MatchFinder::MatchResult &
Result) {
33 const auto *E = Result.Nodes.getNodeAs<Expr>(
"expr");
35 "thrown exception type is not nothrow copy constructible");
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::Optional< llvm::Expected< tooling::AtomicChanges > > Result