clang-tools 22.0.0git
|
This class analysis if a FunctionDecl has been declared implicitly through defaulting or explicitly as throwing or not and evaluates noexcept expressions if needed. More...
#include <ExceptionSpecAnalyzer.h>
Public Types | |
enum class | State { Throwing , NotThrowing , Unknown } |
Public Member Functions | |
ExceptionSpecAnalyzer ()=default | |
State | analyze (const FunctionDecl *FuncDecl) |
This class analysis if a FunctionDecl has been declared implicitly through defaulting or explicitly as throwing or not and evaluates noexcept expressions if needed.
Unlike the ExceptionAnalyzer however it can't tell you if the function will actually throw an exception or not.
Definition at line 21 of file ExceptionSpecAnalyzer.h.
|
strong |
Definition at line 23 of file ExceptionSpecAnalyzer.h.
|
default |
References FuncDecl.
ExceptionSpecAnalyzer::State clang::tidy::utils::ExceptionSpecAnalyzer::analyze | ( | const FunctionDecl * | FuncDecl | ) |
Definition at line 17 of file ExceptionSpecAnalyzer.cpp.
References FuncDecl, and NotThrowing.