clang-tools 22.0.0git
clang::tidy::cppcoreguidelines::ProTypeVarargCheck Class Reference

This check flags all calls to c-style variadic functions and all use of va_arg. More...

#include <ProTypeVarargCheck.h>

Inheritance diagram for clang::tidy::cppcoreguidelines::ProTypeVarargCheck:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ProTypeVarargCheck()

clang::tidy::cppcoreguidelines::ProTypeVarargCheck::ProTypeVarargCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file ProTypeVarargCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::cppcoreguidelines::ProTypeVarargCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

◆ isLanguageVersionSupported()

bool clang::tidy::cppcoreguidelines::ProTypeVarargCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 25 of file ProTypeVarargCheck.h.

◆ registerMatchers()

void clang::tidy::cppcoreguidelines::ProTypeVarargCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

◆ registerPPCallbacks()

void clang::tidy::cppcoreguidelines::ProTypeVarargCheck::registerPPCallbacks ( const SourceManager & SM,
Preprocessor * PP,
Preprocessor * ModuleExpanderPP )
override

Definition at line 152 of file ProTypeVarargCheck.cpp.


The documentation for this class was generated from the following files: