[PATCH] D59183: [clang-tidy] Expand cases covered by the abseil-duration-unnecessary-conversion check

Hyrum Wright via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 9 18:18:09 PST 2019


hwright created this revision.
hwright added a reviewer: hokein.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.

This adds coverage for expressions of these forms

  absl::Duration d2, d1;
  d2 = absl::Seconds(d1 / absl::Seconds(1));
  d2 = absl::Seconds(absl::FDivDuration(d1, absl::Seconds(1)));


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D59183

Files:
  clang-tidy/abseil/DurationUnnecessaryConversionCheck.cpp
  docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst
  test/clang-tidy/Inputs/absl/time/time.h
  test/clang-tidy/abseil-duration-unnecessary-conversion.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59183.189999.patch
Type: text/x-patch
Size: 7731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190310/aed4339a/attachment-0001.bin>


More information about the cfe-commits mailing list