clang-tools 22.0.0git
|
Generic check which checks if the bound function decl is marked with noexcept or noexcept(expr) where expr evaluates to false. More...
#include <NoexceptFunctionBaseCheck.h>
Public Member Functions | |
NoexceptFunctionBaseCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) final override |
std::optional< TraversalKind > | getCheckTraversalKind () const override |
Protected Member Functions | |
virtual DiagnosticBuilder | reportMissingNoexcept (const FunctionDecl *FuncDecl)=0 |
virtual void | reportNoexceptEvaluatedToFalse (const FunctionDecl *FuncDecl, const Expr *NoexceptExpr)=0 |
Static Protected Attributes | |
static constexpr StringRef | BindFuncDeclName = "FuncDecl" |
Generic check which checks if the bound function decl is marked with noexcept or noexcept(expr) where expr evaluates to false.
Definition at line 22 of file NoexceptFunctionBaseCheck.h.
|
inline |
Definition at line 24 of file NoexceptFunctionBaseCheck.h.
|
finaloverride |
Definition at line 19 of file NoexceptFunctionBaseCheck.cpp.
References BindFuncDeclName, FuncDecl, clang::tidy::utils::lexer::getLocationForNoexceptSpecifier(), reportMissingNoexcept(), reportNoexceptEvaluatedToFalse(), and clang::tidy::utils::ExceptionSpecAnalyzer::Throwing.
|
inlineoverride |
Definition at line 32 of file NoexceptFunctionBaseCheck.h.
|
inlineoverride |
Definition at line 27 of file NoexceptFunctionBaseCheck.h.
|
protectedpure virtual |
|
protectedpure virtual |
|
staticconstexprprotected |