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