9 #include "../ClangTidy.h" 10 #include "../ClangTidyModule.h" 11 #include "../ClangTidyModuleRegistry.h" 38 "abseil-duration-addition");
40 "abseil-duration-comparison");
42 "abseil-duration-conversion-cast");
44 "abseil-duration-division");
46 "abseil-duration-factory-float");
48 "abseil-duration-factory-scale");
50 "abseil-duration-subtraction");
52 "abseil-duration-unnecessary-conversion");
54 "abseil-faster-strsplit-delimiter");
56 "abseil-no-internal-dependencies");
59 "abseil-redundant-strcat-calls");
61 "abseil-str-cat-append");
63 "abseil-string-find-startswith");
65 "abseil-time-comparison");
67 "abseil-time-subtraction");
69 "abseil-upgrade-duration-conversions");
74 static ClangTidyModuleRegistry::Add<AbseilModule>
X(
"abseil-module",
75 "Add Abseil checks.");
This check ensures users don't open namespace absl, as that violates Abseil's compatibility guideline...
void registerCheck(StringRef CheckName)
Registers the CheckType with the name Name.
Prefer comparison in the absl::Time domain instead of the numeric domain.
Flags redundant calls to absl::StrCat when the result is being passed to another call of absl::StrCat...
A collection of ClangTidyCheckFactory instances.
static ClangTidyModuleRegistry::Add< AbseilModule > X("abseil-module", "Add Abseil checks.")
This check finds cases where the incorrect Duration factory function is being used by looking for sca...
Finds and fixes absl::Time subtraction expressions to do subtraction in the time domain instead of th...
Finds instances of absl::StrSplit() or absl::MaxSplits() where the delimiter is a single character st...
This check finds cases where Duration factories are being called with floating point arguments...
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
Finds and fixes cases where absl::Duration values are being converted to numeric types and back again...
Finds instances where the user depends on internal details and warns them against doing so...
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module...
Checks for cases where addition should be performed in the absl::Time domain.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Flags uses of absl::StrCat to append to a string.
volatile int AbseilModuleAnchorSource
Finds deprecated uses of absl::Duration arithmetic operators and factories.
Checks for cases where subtraction should be performed in the absl::Duration domain.
Checks for casts of absl::Duration conversion functions, and recommends the right conversion function...
Prefer comparison in the absl::Duration domain instead of the numeric domain.