10 #include "../ClangTidy.h" 11 #include "../ClangTidyModule.h" 12 #include "../ClangTidyModuleRegistry.h" 34 "abseil-duration-comparison");
36 "abseil-duration-division");
38 "abseil-duration-factory-float");
40 "abseil-duration-factory-scale");
42 "abseil-duration-subtraction");
44 "abseil-faster-strsplit-delimiter");
46 "abseil-no-internal-dependencies");
49 "abseil-redundant-strcat-calls");
51 "abseil-str-cat-append");
53 "abseil-string-find-startswith");
55 "abseil-upgrade-duration-conversions");
60 static ClangTidyModuleRegistry::Add<AbseilModule>
X(
"abseil-module",
61 "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.
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 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 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...
===– 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.
Prefer comparison in the absl::Duration domain instead of the numeric domain.