clang-tools 22.0.0git
|
Finds pthread_kill function calls when thread is terminated by / SIGTERM signal. More...
#include <BadSignalToKillThreadCheck.h>
Public Member Functions | |
BadSignalToKillThreadCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
Public Attributes | |
std::optional< unsigned > | SigtermValue |
Finds pthread_kill function calls when thread is terminated by / SIGTERM signal.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/bad-signal-to-kill-thread.html
Definition at line 21 of file BadSignalToKillThreadCheck.h.
|
inline |
Definition at line 23 of file BadSignalToKillThreadCheck.h.
|
override |
Definition at line 30 of file BadSignalToKillThreadCheck.cpp.
References clang::tidy::bugprone::PP, and SigtermValue.
|
override |
Definition at line 19 of file BadSignalToKillThreadCheck.cpp.
|
override |
Definition at line 66 of file BadSignalToKillThreadCheck.cpp.
References clang::tidy::bugprone::PP.
std::optional<unsigned> clang::tidy::bugprone::BadSignalToKillThreadCheck::SigtermValue |
Definition at line 29 of file BadSignalToKillThreadCheck.h.
Referenced by check().