clang-tools
3.9.0
|
Implementation of ClangTidyOptions interface, which is used for '-config' command-line option. More...
#include <ClangTidyOptions.h>
Public Member Functions | |
ConfigOptionsProvider (const ClangTidyGlobalOptions &GlobalOptions, const ClangTidyOptions &DefaultOptions, const ClangTidyOptions &ConfigOptions, const ClangTidyOptions &OverrideOptions) | |
std::vector< OptionsSource > | getRawOptions (llvm::StringRef FileName) override |
Returns an ordered vector of OptionsSources, in order of increasing priority. More... | |
![]() | |
DefaultOptionsProvider (const ClangTidyGlobalOptions &GlobalOptions, const ClangTidyOptions &Options) | |
const ClangTidyGlobalOptions & | getGlobalOptions () override |
Returns global options, which are independent of the file. 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 ClangTidyOptions interface, which is used for '-config' command-line option.
Definition at line 150 of file ClangTidyOptions.h.
clang::tidy::ConfigOptionsProvider::ConfigOptionsProvider | ( | const ClangTidyGlobalOptions & | GlobalOptions, |
const ClangTidyOptions & | DefaultOptions, | ||
const ClangTidyOptions & | ConfigOptions, | ||
const ClangTidyOptions & | OverrideOptions | ||
) |
Definition at line 178 of file ClangTidyOptions.cpp.
|
overridevirtual |
Returns an ordered vector of OptionsSources, in order of increasing priority.
Reimplemented from clang::tidy::DefaultOptionsProvider.
Definition at line 187 of file ClangTidyOptions.cpp.
References clang::tidy::DefaultOptionsProvider::getRawOptions(), clang::tidy::ClangTidyOptionsProvider::OptionsSourceTypeCheckCommandLineOption, and clang::tidy::ClangTidyOptionsProvider::OptionsSourceTypeConfigCommandLineOption.