Finds functions which should not throw exceptions: Destructors, move constructors, move assignment operators, the main() function, swap() functions, functions marked with throw() or noexcept and functions given as option to the checker.
More...
#include <ExceptionEscapeCheck.h>
Finds functions which should not throw exceptions: Destructors, move constructors, move assignment operators, the main() function, swap() functions, functions marked with throw() or noexcept and functions given as option to the checker.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/exception-escape.html
Definition at line 25 of file bugprone/ExceptionEscapeCheck.h.
◆ ExceptionEscapeCheck()
clang::tidy::bugprone::ExceptionEscapeCheck::ExceptionEscapeCheck |
( |
StringRef | Name, |
|
|
ClangTidyContext * | Context ) |
◆ check()
void clang::tidy::bugprone::ExceptionEscapeCheck::check |
( |
const ast_matchers::MatchFinder::MatchResult & | Result | ) |
|
|
override |
◆ isLanguageVersionSupported()
bool clang::tidy::bugprone::ExceptionEscapeCheck::isLanguageVersionSupported |
( |
const LangOptions & | LangOpts | ) |
const |
|
inlineoverride |
◆ registerMatchers()
void clang::tidy::bugprone::ExceptionEscapeCheck::registerMatchers |
( |
ast_matchers::MatchFinder * | Finder | ) |
|
|
override |
◆ storeOptions()
The documentation for this class was generated from the following files: