10 #include "../ClangTidy.h"
11 #include "../ClangTidyModule.h"
12 #include "../ClangTidyModuleRegistry.h"
24 using namespace clang::ast_matchers;
37 "modernize-redundant-void-arg");
39 "modernize-replace-auto-ptr");
52 Opts[
"modernize-loop-convert.MaxCopySize"] =
"16";
54 Opts[
"modernize-loop-convert.MinConfidence"] =
"reasonable";
55 Opts[
"modernize-loop-convert.NamingStyle"] =
"CamelCase";
56 Opts[
"modernize-pass-by-value.IncludeStyle"] =
"llvm";
57 Opts[
"modernize-replace-auto-ptr.IncludeStyle"] =
"llvm";
60 Opts[
"modernize-use-nullptr.NullMacros"] =
"NULL";
66 static ClangTidyModuleRegistry::Add<ModernizeModule>
X(
"modernize-module",
67 "Add modernize checks.");
static ClangTidyModuleRegistry::Add< ModernizeModule > X("modernize-module","Add modernize checks.")
Transforms the deprecated std::auto_ptr into the C++11 std::unique_ptr.
Use C++11's override and remove virtual where applicable.
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Contains options for clang-tidy.
A collection of ClangTidyCheckFactory instances.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.
Replace default bodies of special member functions with '= default;'.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Find and remove redundant void argument lists.
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
volatile int ModernizeModuleAnchorSource
Replace copy and swap tricks on shrinkable containers with the shrink_to_fit() method call...