35class PerformanceModule :
public ClangTidyModule {
37 void addCheckFactories(ClangTidyCheckFactories &CheckFactories)
override {
38 CheckFactories.registerCheck<AvoidEndlCheck>(
"performance-avoid-endl");
39 CheckFactories.registerCheck<EnumSizeCheck>(
"performance-enum-size");
40 CheckFactories.registerCheck<FasterStringFindCheck>(
41 "performance-faster-string-find");
42 CheckFactories.registerCheck<ForRangeCopyCheck>(
43 "performance-for-range-copy");
44 CheckFactories.registerCheck<ImplicitConversionInLoopCheck>(
45 "performance-implicit-conversion-in-loop");
46 CheckFactories.registerCheck<InefficientAlgorithmCheck>(
47 "performance-inefficient-algorithm");
48 CheckFactories.registerCheck<InefficientStringConcatenationCheck>(
49 "performance-inefficient-string-concatenation");
50 CheckFactories.registerCheck<InefficientVectorOperationCheck>(
51 "performance-inefficient-vector-operation");
52 CheckFactories.registerCheck<MoveConstArgCheck>(
53 "performance-move-const-arg");
54 CheckFactories.registerCheck<MoveConstructorInitCheck>(
55 "performance-move-constructor-init");
56 CheckFactories.registerCheck<NoAutomaticMoveCheck>(
57 "performance-no-automatic-move");
58 CheckFactories.registerCheck<NoIntToPtrCheck>(
"performance-no-int-to-ptr");
59 CheckFactories.registerCheck<NoexceptDestructorCheck>(
60 "performance-noexcept-destructor");
61 CheckFactories.registerCheck<NoexceptMoveConstructorCheck>(
62 "performance-noexcept-move-constructor");
63 CheckFactories.registerCheck<NoexceptSwapCheck>(
64 "performance-noexcept-swap");
65 CheckFactories.registerCheck<TriviallyDestructibleCheck>(
66 "performance-trivially-destructible");
67 CheckFactories.registerCheck<TypePromotionInMathFnCheck>(
68 "performance-type-promotion-in-math-fn");
69 CheckFactories.registerCheck<UnnecessaryCopyInitializationCheck>(
70 "performance-unnecessary-copy-initialization");
71 CheckFactories.registerCheck<UnnecessaryValueParamCheck>(
72 "performance-unnecessary-value-param");
79static ClangTidyModuleRegistry::Add<PerformanceModule>
80 X(
"performance-module",
"Adds performance checks.");
volatile int PerformanceModuleAnchorSource