clang-tools  14.0.0git
Public Member Functions | List of all members
clang::tidy::ClangTidyASTConsumerFactory Class Reference

#include <ClangTidy.h>

Public Member Functions

 ClangTidyASTConsumerFactory (ClangTidyContext &Context, IntrusiveRefCntPtr< llvm::vfs::OverlayFileSystem > OverlayFS=nullptr)
 
std::unique_ptr< clang::ASTConsumer > createASTConsumer (clang::CompilerInstance &Compiler, StringRef File)
 Returns an ASTConsumer that runs the specified clang-tidy checks. More...
 
std::vector< std::string > getCheckNames ()
 Get the list of enabled checks. More...
 
ClangTidyOptions::OptionMap getCheckOptions ()
 Get the union of options from all checks. More...
 

Detailed Description

Definition at line 33 of file ClangTidy.h.

Constructor & Destructor Documentation

◆ ClangTidyASTConsumerFactory()

clang::tidy::ClangTidyASTConsumerFactory::ClangTidyASTConsumerFactory ( ClangTidyContext Context,
IntrusiveRefCntPtr< llvm::vfs::OverlayFileSystem >  OverlayFS = nullptr 
)

Definition at line 328 of file ClangTidy.cpp.

Member Function Documentation

◆ createASTConsumer()

std::unique_ptr< clang::ASTConsumer > clang::tidy::ClangTidyASTConsumerFactory::createASTConsumer ( clang::CompilerInstance &  Compiler,
StringRef  File 
)

Returns an ASTConsumer that runs the specified clang-tidy checks.

Definition at line 388 of file ClangTidy.cpp.

◆ getCheckNames()

std::vector< std::string > clang::tidy::ClangTidyASTConsumerFactory::getCheckNames ( )

Get the list of enabled checks.

Definition at line 464 of file ClangTidy.cpp.

◆ getCheckOptions()

ClangTidyOptions::OptionMap clang::tidy::ClangTidyASTConsumerFactory::getCheckOptions ( )

Get the union of options from all checks.

Definition at line 481 of file ClangTidy.cpp.

References Checks().


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