clang  14.0.0git
Public Member Functions | Public Attributes | List of all members
clang::ento::CheckerRegistryData Struct Reference

#include "clang/StaticAnalyzer/Core/CheckerRegistryData.h"

Collaboration diagram for clang::ento::CheckerRegistryData:
Collaboration graph
[legend]

Public Member Functions

CheckerInfoListRange getMutableCheckersForCmdLineArg (StringRef CmdLineArg)
 
void printCheckerWithDescList (const AnalyzerOptions &AnOpts, raw_ostream &Out, size_t MaxNameChars=30) const
 Prints the name and description of all checkers in this registry. More...
 
void printEnabledCheckerList (raw_ostream &Out) const
 
void printCheckerOptionList (const AnalyzerOptions &AnOpts, raw_ostream &Out) const
 

Public Attributes

CheckerInfoSet EnabledCheckers
 
CheckerInfoList Checkers
 
PackageInfoList Packages
 
llvm::StringMap< size_tPackageSizes
 Used for counting how many checkers belong to a certain package in the Checkers field. More...
 
llvm::SmallVector< std::pair< StringRef, CmdLineOption >, 0 > PackageOptions
 Contains all (FullName, CmdLineOption) pairs. More...
 
llvm::SmallVector< std::pair< StringRef, CmdLineOption >, 0 > CheckerOptions
 
llvm::SmallVector< std::pair< StringRef, StringRef >, 0 > Dependencies
 
llvm::SmallVector< std::pair< StringRef, StringRef >, 0 > WeakDependencies
 

Detailed Description

Definition at line 193 of file CheckerRegistryData.h.

Member Function Documentation

◆ getMutableCheckersForCmdLineArg()

CheckerInfoListRange CheckerRegistryData::getMutableCheckersForCmdLineArg ( StringRef  CmdLineArg)

◆ printCheckerOptionList()

void CheckerRegistryData::printCheckerOptionList ( const AnalyzerOptions AnOpts,
raw_ostream &  Out 
) const

◆ printCheckerWithDescList()

void CheckerRegistryData::printCheckerWithDescList ( const AnalyzerOptions AnOpts,
raw_ostream &  Out,
size_t  MaxNameChars = 30 
) const

Prints the name and description of all checkers in this registry.

This output is not intended to be machine-parseable.

Definition at line 122 of file CheckerRegistryData.cpp.

References Checkers, max(), clang::AnalyzerOptions::printFormattedEntry(), clang::AnalyzerOptions::ShowCheckerHelp, clang::AnalyzerOptions::ShowCheckerHelpAlpha, and clang::AnalyzerOptions::ShowCheckerHelpDeveloper.

◆ printEnabledCheckerList()

void CheckerRegistryData::printEnabledCheckerList ( raw_ostream &  Out) const

Definition at line 173 of file CheckerRegistryData.cpp.

References EnabledCheckers.

Member Data Documentation

◆ CheckerOptions

llvm::SmallVector<std::pair<StringRef, CmdLineOption>, 0> clang::ento::CheckerRegistryData::CheckerOptions

◆ Checkers

CheckerInfoList clang::ento::CheckerRegistryData::Checkers

◆ Dependencies

llvm::SmallVector<std::pair<StringRef, StringRef>, 0> clang::ento::CheckerRegistryData::Dependencies

◆ EnabledCheckers

CheckerInfoSet clang::ento::CheckerRegistryData::EnabledCheckers

◆ PackageOptions

llvm::SmallVector<std::pair<StringRef, CmdLineOption>, 0> clang::ento::CheckerRegistryData::PackageOptions

Contains all (FullName, CmdLineOption) pairs.

Similarly to dependencies, we only modify the actual CheckerInfo and PackageInfo objects once all of them have been added.

Definition at line 206 of file CheckerRegistryData.h.

Referenced by clang::ento::CheckerRegistry::addPackageOption().

◆ Packages

PackageInfoList clang::ento::CheckerRegistryData::Packages

◆ PackageSizes

llvm::StringMap<size_t> clang::ento::CheckerRegistryData::PackageSizes

Used for counting how many checkers belong to a certain package in the Checkers field.

For convenience purposes.

Definition at line 201 of file CheckerRegistryData.h.

Referenced by getMutableCheckersForCmdLineArg().

◆ WeakDependencies

llvm::SmallVector<std::pair<StringRef, StringRef>, 0> clang::ento::CheckerRegistryData::WeakDependencies

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