|
clang-tools 22.0.0git
|
This check flags all calls to c-style variadic functions and all use of va_arg. More...
#include <ProTypeVarargCheck.h>
Public Member Functions | |
| ProTypeVarargCheck (StringRef Name, ClangTidyContext *Context) | |
| bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
| void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
| void | registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override |
| void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
This check flags all calls to c-style variadic functions and all use of va_arg.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/pro-type-vararg.html
Definition at line 21 of file ProTypeVarargCheck.h.
|
inline |
Definition at line 23 of file ProTypeVarargCheck.h.
|
override |
Definition at line 178 of file ProTypeVarargCheck.cpp.
References clang::tidy::cppcoreguidelines::hasSingleVariadicArgumentWithValue(), and clang::tidy::cppcoreguidelines::VaArgWarningMessage.
|
inlineoverride |
Definition at line 25 of file ProTypeVarargCheck.h.
|
override |
Definition at line 133 of file ProTypeVarargCheck.cpp.
References clang::tidy::cppcoreguidelines::AllowedVariadics, and clang::tidy::cppcoreguidelines::VAArgExpr.
|
override |
Definition at line 152 of file ProTypeVarargCheck.cpp.