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

Find uninitialized local variables. More...

#include <InitVariablesCheck.h>

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

Public Member Functions

 InitVariablesCheck (StringRef Name, ClangTidyContext *Context)
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Find uninitialized local variables.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/cppcoreguidelines/init-variables.html

Definition at line 22 of file InitVariablesCheck.h.

Constructor & Destructor Documentation

◆ InitVariablesCheck()

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

Definition at line 26 of file InitVariablesCheck.cpp.

Member Function Documentation

◆ check()

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

◆ registerMatchers()

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

Definition at line 39 of file InitVariablesCheck.cpp.

◆ registerPPCallbacks()

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

Definition at line 52 of file InitVariablesCheck.cpp.

◆ storeOptions()

void clang::tidy::cppcoreguidelines::InitVariablesCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 34 of file InitVariablesCheck.cpp.


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