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

Implementation of ClangTidyOptions interface, which is used for '-config' command-line option. More...

#include <ClangTidyOptions.h>

Inheritance diagram for clang::tidy::ConfigOptionsProvider:
Inheritance graph
[legend]
Collaboration diagram for clang::tidy::ConfigOptionsProvider:
Collaboration graph
[legend]

Public Member Functions

 ConfigOptionsProvider (ClangTidyGlobalOptions GlobalOptions, ClangTidyOptions DefaultOptions, ClangTidyOptions ConfigOptions, ClangTidyOptions OverrideOptions, llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > FS=nullptr)
 
std::vector< OptionsSourcegetRawOptions (llvm::StringRef FileName) override
 Returns an ordered vector of OptionsSources, in order of increasing priority. More...
 
- Public Member Functions inherited from clang::tidy::DefaultOptionsProvider
 DefaultOptionsProvider (ClangTidyGlobalOptions GlobalOptions, ClangTidyOptions Options)
 
const ClangTidyGlobalOptionsgetGlobalOptions () override
 Returns global options, which are independent of the file. More...
 
- Public Member Functions inherited from clang::tidy::ClangTidyOptionsProvider
virtual ~ClangTidyOptionsProvider ()
 
ClangTidyOptions getOptions (llvm::StringRef FileName)
 Returns options applying to a specific translation unit with the specified FileName. More...
 

Additional Inherited Members

- Public Types inherited from clang::tidy::ClangTidyOptionsProvider
typedef std::pair< ClangTidyOptions, std::string > OptionsSource
 ClangTidyOptions and its source. More...
 
- Static Public Attributes inherited from clang::tidy::ClangTidyOptionsProvider
static const char OptionsSourceTypeDefaultBinary []
 
static const char OptionsSourceTypeCheckCommandLineOption []
 
static const char OptionsSourceTypeConfigCommandLineOption []
 
- Protected Types inherited from clang::tidy::FileOptionsBaseProvider
typedef std::pair< std::string, std::function< llvm::ErrorOr< ClangTidyOptions > llvm::MemoryBufferRef)> > ConfigFileHandler
 
typedef std::vector< ConfigFileHandlerConfigFileHandlers
 Configuration file handlers listed in the order of priority. More...
 
- Protected Member Functions inherited from clang::tidy::FileOptionsBaseProvider
 FileOptionsBaseProvider (ClangTidyGlobalOptions GlobalOptions, ClangTidyOptions DefaultOptions, ClangTidyOptions OverrideOptions, llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > FS)
 
 FileOptionsBaseProvider (ClangTidyGlobalOptions GlobalOptions, ClangTidyOptions DefaultOptions, ClangTidyOptions OverrideOptions, ConfigFileHandlers ConfigHandlers)
 
void addRawFileOptions (llvm::StringRef AbsolutePath, std::vector< OptionsSource > &CurOptions)
 
llvm::Optional< OptionsSourcetryReadConfigFile (llvm::StringRef Directory)
 Try to read configuration files from Directory using registered ConfigHandlers. More...
 
- Protected Attributes inherited from clang::tidy::FileOptionsBaseProvider
llvm::StringMap< OptionsSourceCachedOptions
 
ClangTidyOptions OverrideOptions
 
ConfigFileHandlers ConfigHandlers
 
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem > FS
 

Detailed Description

Implementation of ClangTidyOptions interface, which is used for '-config' command-line option.

Definition at line 244 of file ClangTidyOptions.h.

Constructor & Destructor Documentation

◆ ConfigOptionsProvider()

clang::tidy::ConfigOptionsProvider::ConfigOptionsProvider ( ClangTidyGlobalOptions  GlobalOptions,
ClangTidyOptions  DefaultOptions,
ClangTidyOptions  ConfigOptions,
ClangTidyOptions  OverrideOptions,
llvm::IntrusiveRefCntPtr< llvm::vfs::FileSystem >  FS = nullptr 
)

Definition at line 197 of file ClangTidyOptions.cpp.

Member Function Documentation

◆ getRawOptions()

std::vector< OptionsSource > clang::tidy::ConfigOptionsProvider::getRawOptions ( llvm::StringRef  FileName)
overridevirtual

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