23 if (SpecAnalyzer.analyze(
FuncDecl) !=
29 const auto *ProtoType =
FuncDecl->getType()->castAs<FunctionProtoType>();
30 const Expr *NoexceptExpr = ProtoType->getNoexceptExpr();
32 NoexceptExpr = NoexceptExpr->IgnoreImplicit();
33 if (!isa<CXXBoolLiteralExpr>(NoexceptExpr))
41 const SourceManager &SM = *Result.SourceManager;
43 const SourceLocation NoexceptLoc =
45 if (NoexceptLoc.isValid())
46 Diag << FixItHint::CreateInsertion(NoexceptLoc,
" noexcept ");