Go to the documentation of this file.
9 #include "../ClangTidy.h"
10 #include "../ClangTidyModule.h"
11 #include "../ClangTidyModuleRegistry.h"
39 "abseil-duration-addition");
41 "abseil-duration-comparison");
43 "abseil-duration-conversion-cast");
45 "abseil-duration-division");
47 "abseil-duration-factory-float");
49 "abseil-duration-factory-scale");
51 "abseil-duration-subtraction");
53 "abseil-duration-unnecessary-conversion");
55 "abseil-faster-strsplit-delimiter");
57 "abseil-no-internal-dependencies");
60 "abseil-redundant-strcat-calls");
62 "abseil-str-cat-append");
64 "abseil-string-find-startswith");
66 "abseil-string-find-str-contains");
68 "abseil-time-comparison");
70 "abseil-time-subtraction");
72 "abseil-upgrade-duration-conversions");
77 static ClangTidyModuleRegistry::Add<AbseilModule>
X(
"abseil-module",
78 "Add Abseil checks.");
Finds s.find(...) == string::npos comparisons (for various string-like types) and suggests replacing ...
This check ensures users don't open namespace absl, as that violates Abseil's compatibility guideline...
Flags redundant calls to absl::StrCat when the result is being passed to another call of absl::StrCat...
Checks for cases where addition should be performed in the absl::Time domain.
A collection of ClangTidyCheckFactory instances.
Finds instances of absl::StrSplit() or absl::MaxSplits() where the delimiter is a single character st...
Finds instances where the user depends on internal details and warns them against doing so.
Prefer comparison in the absl::Time domain instead of the numeric domain.
Checks for casts of absl::Duration conversion functions, and recommends the right conversion function...
Finds deprecated uses of absl::Duration arithmetic operators and factories.
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 cases where absl::Duration values are being converted to numeric types and back again...
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Flags uses of absl::StrCat to append to a string.
Prefer comparison in the absl::Duration domain instead of the numeric domain.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
Finds and fixes absl::Time subtraction expressions to do subtraction in the time domain instead of th...
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
This check finds cases where Duration factories are being called with floating point arguments,...
Checks for cases where subtraction should be performed in the absl::Duration domain.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
volatile int AbseilModuleAnchorSource