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