We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6677ba commit 4f0c342Copy full SHA for 4f0c342
clang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp
@@ -96,6 +96,8 @@ void TimeSubtractionCheck::registerMatchers(MatchFinder *Finder) {
96
const std::string TimeInverse = (llvm::Twine("ToUnix") + ScaleName).str();
97
std::optional<DurationScale> Scale = getScaleForTimeInverse(TimeInverse);
98
assert(Scale && "Unknown scale encountered");
99
+ if (!Scale)
100
+ continue;
101
102
auto TimeInverseMatcher = callExpr(callee(
103
functionDecl(hasName((llvm::Twine("::absl::") + TimeInverse).str()))
0 commit comments