clang-tools 20.0.0git
|
Abstract interface for retrieving various ClangTidy options. More...
#include <ClangTidyOptions.h>
Public Types | |
using | OptionsSource = std::pair< ClangTidyOptions, std::string > |
ClangTidyOptions and its source. | |
Public Member Functions | |
virtual | ~ClangTidyOptionsProvider () |
virtual const ClangTidyGlobalOptions & | getGlobalOptions ()=0 |
Returns global options, which are independent of the file. | |
virtual std::vector< OptionsSource > | getRawOptions (llvm::StringRef FileName)=0 |
Returns an ordered vector of OptionsSources, in order of increasing priority. | |
ClangTidyOptions | getOptions (llvm::StringRef FileName) |
Returns options applying to a specific translation unit with the specified FileName . | |
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 153 of file ClangTidyOptions.h.
using clang::tidy::ClangTidyOptionsProvider::OptionsSource = std::pair<ClangTidyOptions, std::string> |
ClangTidyOptions and its source.
clang-tidy has 3 types of the sources in order of increasing priority:
Definition at line 172 of file ClangTidyOptions.h.
|
inlinevirtual |
Definition at line 159 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 270 of file ClangTidyOptions.cpp.
References FileName, and getRawOptions().
|
pure virtual |
Returns an ordered vector of OptionsSources, in order of increasing priority.
Implemented in clang::tidy::DefaultOptionsProvider, clang::tidy::ConfigOptionsProvider, and clang::tidy::FileOptionsProvider.
Referenced by getOptions().
|
static |
Definition at line 156 of file ClangTidyOptions.h.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions(), and clang::tidy::FileOptionsProvider::getRawOptions().
|
static |
Definition at line 157 of file ClangTidyOptions.h.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions().
|
static |
Definition at line 155 of file ClangTidyOptions.h.
Referenced by clang::tidy::DefaultOptionsProvider::getRawOptions().