clang-tools 22.0.0git
|
Implementation of the ClangTidyOptionsProvider
interface, which returns the same options for all files.
More...
#include <ClangTidyOptions.h>
Public Member Functions | |
DefaultOptionsProvider (ClangTidyGlobalOptions GlobalOptions, ClangTidyOptions Options) | |
const ClangTidyGlobalOptions & | getGlobalOptions () override |
Returns global options, which are independent of the file. | |
std::vector< OptionsSource > | getRawOptions (llvm::StringRef FileName) override |
Returns an ordered vector of OptionsSources, in order of increasing priority. | |
Public Member Functions inherited from clang::tidy::ClangTidyOptionsProvider | |
virtual | ~ClangTidyOptionsProvider () |
ClangTidyOptions | getOptions (llvm::StringRef FileName) |
Returns options applying to a specific translation unit with the specified FileName . |
Additional Inherited Members | |
Public Types inherited from clang::tidy::ClangTidyOptionsProvider | |
using | OptionsSource = std::pair<ClangTidyOptions, std::string> |
ClangTidyOptions and its source. | |
Static Public Attributes inherited from clang::tidy::ClangTidyOptionsProvider | |
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 201 of file ClangTidyOptions.h.
|
inline |
Definition at line 203 of file ClangTidyOptions.h.
Referenced by clang::tidy::FileOptionsBaseProvider::FileOptionsBaseProvider(), and clang::tidy::FileOptionsBaseProvider::FileOptionsBaseProvider().
|
inlineoverridevirtual |
Returns global options, which are independent of the file.
Implements clang::tidy::ClangTidyOptionsProvider.
Definition at line 207 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.
Definition at line 332 of file ClangTidyOptions.cpp.
References clang::tidy::ClangTidyOptionsProvider::OptionsSourceTypeDefaultBinary.
Referenced by clang::tidy::ConfigOptionsProvider::getRawOptions(), and clang::tidy::FileOptionsProvider::getRawOptions().