clang-tools
3.9.0
|
Implementation of the ClangTidyOptionsProvider
interface, which returns the same options for all files.
More...
#include <ClangTidyOptions.h>
Public Member Functions | |
DefaultOptionsProvider (const ClangTidyGlobalOptions &GlobalOptions, const ClangTidyOptions &Options) | |
const ClangTidyGlobalOptions & | getGlobalOptions () override |
Returns global options, which are independent of the file. More... | |
std::vector< OptionsSource > | getRawOptions (llvm::StringRef FileName) override |
Returns an ordered vector of OptionsSources, in order of increasing priority. More... | |
![]() | |
virtual | ~ClangTidyOptionsProvider () |
ClangTidyOptions | getOptions (llvm::StringRef FileName) |
Returns options applying to a specific translation unit with the specified FileName . More... | |
Additional Inherited Members | |
![]() | |
typedef std::pair < ClangTidyOptions, std::string > | OptionsSource |
ClangTidyOptions and its source. More... | |
![]() | |
static const char | OptionsSourceTypeDefaultBinary [] |
static const char | OptionsSourceTypeCheckCommandLineOption [] |
static const char | OptionsSourceTypeConfigCommandLineOption [] |
Implementation of the ClangTidyOptionsProvider
interface, which returns the same options for all files.
Definition at line 133 of file ClangTidyOptions.h.
|
inline |
Definition at line 135 of file ClangTidyOptions.h.
|
inlineoverridevirtual |
Returns global options, which are independent of the file.
Implements clang::tidy::ClangTidyOptionsProvider.
Definition at line 138 of file ClangTidyOptions.h.
|
overridevirtual |
Returns an ordered vector of OptionsSources, in order of increasing priority.
Implements clang::tidy::ClangTidyOptionsProvider.
Reimplemented in clang::tidy::FileOptionsProvider, and clang::tidy::ConfigOptionsProvider.
Definition at line 172 of file ClangTidyOptions.cpp.
References clang::tidy::ClangTidyOptionsProvider::OptionsSourceTypeDefaultBinary, and Result.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions(), and clang::tidy::FileOptionsProvider::getRawOptions().