clang-tools
15.0.0git
|
Abstract interface for retrieving various ClangTidy options. More...
#include <ClangTidyOptions.h>
Public Types | |
typedef std::pair< ClangTidyOptions, std::string > | OptionsSource |
ClangTidyOptions and its source. More... | |
Public Member Functions | |
virtual | ~ClangTidyOptionsProvider () |
virtual const ClangTidyGlobalOptions & | getGlobalOptions ()=0 |
Returns global options, which are independent of the file. More... | |
virtual std::vector< OptionsSource > | getRawOptions (llvm::StringRef FileName)=0 |
Returns an ordered vector of OptionsSources, in order of increasing priority. More... | |
ClangTidyOptions | getOptions (llvm::StringRef FileName) |
Returns options applying to a specific translation unit with the specified FileName . More... | |
Static Public Attributes | |
static const char | OptionsSourceTypeDefaultBinary [] |
static const char | OptionsSourceTypeCheckCommandLineOption [] |
static const char | OptionsSourceTypeConfigCommandLineOption [] |
Abstract interface for retrieving various ClangTidy options.
Definition at line 142 of file ClangTidyOptions.h.
typedef std::pair<ClangTidyOptions, std::string> clang::tidy::ClangTidyOptionsProvider::OptionsSource |
ClangTidyOptions and its source.
clang-tidy has 3 types of the sources in order of increasing priority:
Definition at line 161 of file ClangTidyOptions.h.
|
inlinevirtual |
Definition at line 148 of file ClangTidyOptions.h.
|
pure virtual |
Returns global options, which are independent of the file.
Implemented in clang::tidy::DefaultOptionsProvider.
ClangTidyOptions clang::tidy::ClangTidyOptionsProvider::getOptions | ( | llvm::StringRef | FileName | ) |
Returns options applying to a specific translation unit with the specified FileName
.
Definition at line 182 of file ClangTidyOptions.cpp.
|
pure virtual |
Returns an ordered vector of OptionsSources, in order of increasing priority.
Implemented in clang::tidy::FileOptionsProvider, clang::tidy::ConfigOptionsProvider, and clang::tidy::DefaultOptionsProvider.
|
static |
Definition at line 145 of file ClangTidyOptions.h.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions(), and clang::tidy::FileOptionsProvider::getRawOptions().
|
static |
Definition at line 146 of file ClangTidyOptions.h.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions().
|
static |
Definition at line 144 of file ClangTidyOptions.h.