clang-tools 22.0.0git
|
Finds calls to 'new' that may throw unhandled exception at allocation failure. More...
#include <UnhandledExceptionAtNewCheck.h>
Public Member Functions | |
UnhandledExceptionAtNewCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Finds calls to 'new' that may throw unhandled exception at allocation failure.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/unhandled-exception-at-new.html
Definition at line 21 of file UnhandledExceptionAtNewCheck.h.
clang::tidy::bugprone::UnhandledExceptionAtNewCheck::UnhandledExceptionAtNewCheck | ( | StringRef | Name, |
ClangTidyContext * | Context ) |
Definition at line 42 of file UnhandledExceptionAtNewCheck.cpp.
|
override |
Definition at line 68 of file UnhandledExceptionAtNewCheck.cpp.
|
inlineoverride |
Definition at line 25 of file UnhandledExceptionAtNewCheck.h.
|
override |
Definition at line 46 of file UnhandledExceptionAtNewCheck.cpp.