clang-tools
3.9.0
|
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 100 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 119 of file ClangTidyOptions.h.
|
inlinevirtual |
Definition at line 106 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 164 of file ClangTidyOptions.cpp.
References getRawOptions(), clang::tidy::ClangTidyOptions::mergeWith(), and Result.
|
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.
Referenced by getOptions().
|
static |
Definition at line 103 of file ClangTidyOptions.h.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions(), and clang::tidy::FileOptionsProvider::getRawOptions().
|
static |
Definition at line 104 of file ClangTidyOptions.h.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions().
|
static |
Definition at line 102 of file ClangTidyOptions.h.
Referenced by clang::tidy::DefaultOptionsProvider::getRawOptions().