clang-tools 22.0.0git
|
Checks for casts of absl::Duration conversion functions, and recommends the right conversion function instead. More...
#include <DurationConversionCastCheck.h>
Public Member Functions | |
DurationConversionCastCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Checks for casts of absl::Duration conversion functions, and recommends the right conversion function instead.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/abseil/duration-conversion-cast.html
Definition at line 21 of file DurationConversionCastCheck.h.
|
inline |
Definition at line 23 of file DurationConversionCastCheck.h.
|
override |
Definition at line 34 of file DurationConversionCastCheck.cpp.
References FuncDecl, clang::tidy::abseil::getDurationInverseForScale(), clang::tidy::abseil::getScaleForDurationInverse(), and clang::tidy::abseil::isInMacro().
|
inlineoverride |
Definition at line 25 of file DurationConversionCastCheck.h.
|
override |
Definition at line 20 of file DurationConversionCastCheck.cpp.