10 #include "../ClangTidy.h" 11 #include "../ClangTidyModule.h" 12 #include "../ClangTidyModuleRegistry.h" 55 "modernize-concat-nested-namespaces");
57 "modernize-deprecated-headers");
59 "modernize-deprecated-ios-base-aliases");
65 "modernize-raw-string-literal");
67 "modernize-redundant-void-arg");
69 "modernize-replace-auto-ptr");
71 "modernize-replace-random-shuffle");
73 "modernize-return-braced-init-list");
76 "modernize-unary-static-assert");
79 "modernize-use-bool-literals");
81 "modernize-use-default-member-init");
85 "modernize-use-equals-delete");
87 "modernize-use-nodiscard");
92 "modernize-use-transparent-functors");
94 "modernize-use-uncaught-exceptions");
103 Opts[
"modernize-loop-convert.MaxCopySize"] =
"16";
105 Opts[
"modernize-loop-convert.MinConfidence"] =
"reasonable";
106 Opts[
"modernize-loop-convert.NamingStyle"] =
"CamelCase";
107 Opts[
"modernize-pass-by-value.IncludeStyle"] =
"llvm";
108 Opts[
"modernize-replace-auto-ptr.IncludeStyle"] =
"llvm";
111 Opts[
"modernize-use-nullptr.NullMacros"] =
"NULL";
117 static ClangTidyModuleRegistry::Add<ModernizeModule>
X(
"modernize-module",
118 "Add modernize checks.");
This check replaces string literals with escaped characters to raw string literals.
Transforms the deprecated std::auto_ptr into the C++11 std::unique_ptr.
This check warns the uses of the deprecated member types of std::ios_base and replaces those that hav...
Finds integer literals which are cast to bool.
Replace dynamic exception specifications, with noexcept (or user-defined macro) or noexcept(false)...
Use C++11's override and remove virtual where applicable.
Add [[nodiscard]] to non-void const-member functions with no arguments or pass-by-value or pass by co...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Convert a default constructor's member initializers into default member initializers.
Contains options for clang-tidy.
Replace default bodies of special member functions with '= default;'.
A collection of ClangTidyCheckFactory instances.
OptionMap CheckOptions
Key-value mapping used to store check-specific options.
This check will warn on calls to std::uncaught_exception and replace them with calls to std::uncaught...
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Find and remove redundant void argument lists.
Replace simple uses of std::bind with a lambda.
Find C-style array types and recommend to use std::array<> / std::vector<>.
ClangTidyOptions getModuleOptions() override
Gets default options for checks defined in this module.
std::random_shuffle will be removed as of C++17.
Prefer using transparent functors to non-transparent ones.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Replaces a static_assert declaration with an empty message with the unary version.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
Check finds typedefs and replaces it with usings.
volatile int ModernizeModuleAnchorSource
Mark unimplemented private special member functions with '= delete'.
Use a braced init list for return statements rather than unnecessary repeating the return type name...
static ClangTidyModuleRegistry::Add< ModernizeModule > X("modernize-module", "Add modernize checks.")
Replace copy and swap tricks on shrinkable containers with the shrink_to_fit() method call...
This check looks for cases when inserting new element into std::vector but the element is constructed...