[PATCH] D56532: [clang-tidy] Add the abseil-duration-conversion-cast check
Hyrum Wright via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 16 07:27:41 PST 2019
hwright added inline comments.
================
Comment at: clang-tidy/abseil/DurationComparisonCheck.cpp:47-48
// if nothing needs to be done.
- if (!IsValidMacro(Result, Binop->getLHS()) ||
- !IsValidMacro(Result, Binop->getRHS()))
+ if (!isNotInMacro(Result, Binop->getLHS()) ||
+ !isNotInMacro(Result, Binop->getRHS()))
return;
----------------
aaron.ballman wrote:
> I think this change (and the related removal) should be landed separately as a NFC commit once this one lands, as it's logically separate from the new check.
I've gone ahead and done the change separately, which should clean this up.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56532/new/
https://reviews.llvm.org/D56532
More information about the cfe-commits
mailing list