[clang-tidy] Update Abseil Duration Conversion check to find more cases.
authorHyrum Wright <hwright@google.com>
Tue, 3 Mar 2020 20:08:03 +0000 (15:08 -0500)
committerHyrum Wright <hwright@google.com>
Fri, 13 Mar 2020 16:52:37 +0000 (12:52 -0400)
commit3860b2a0bd09291a276b0590939961dffe67fbb6
treec762863fb5d3d07fe672f82a7562aaf2caecc3f8
parenta2db388dce77c2f23f2009d7363a0b63bb54523c
[clang-tidy] Update Abseil Duration Conversion check to find more cases.

This change improves the check to handle cases with internal scalar
multiplication.

Differential Revision: https://reviews.llvm.org/D75558
clang-tools-extra/clang-tidy/abseil/DurationUnnecessaryConversionCheck.cpp
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst
clang-tools-extra/test/clang-tidy/checkers/abseil-duration-unnecessary-conversion.cpp