diff options
author | Jonas Toth <jonas.toth@gmail.com> | 2018-10-24 17:40:50 +0000 |
---|---|---|
committer | Jonas Toth <jonas.toth@gmail.com> | 2018-10-24 17:40:50 +0000 |
commit | 618c0bc363033a2a9d4a3f2b1a0c09c4703e4e55 (patch) | |
tree | 9b096c4851be3e4180e3ea8e6eb815d68bc25a0e /clang/test/CodeGen/arm64_vdupq_n_f64.c | |
parent | c342c8b87e8f8918060b364b7ba67dc72b2237a3 (diff) | |
download | bcm5719-llvm-618c0bc363033a2a9d4a3f2b1a0c09c4703e4e55.tar.gz bcm5719-llvm-618c0bc363033a2a9d4a3f2b1a0c09c4703e4e55.zip |
[clang-tidy] Add the abseil-duration-factory-float check
Summary:
This check finds cases where calls to an absl::Duration factory could use the more efficient integer overload.
For example:
// Original - Providing a floating-point literal.
absl::Duration d = absl::Seconds(10.0);
// Suggested - Use an integer instead.
absl::Duration d = absl::Seconds(10);
Patch by hwright.
Reviewers: alexfh, hokein, aaron.ballman, JonasToth
Reviewed By: hokein, JonasToth
Subscribers: zturner, xazax.hun, Eugene.Zelenko, mgorny, cfe-commits
Tags: #clang-tools-extra
Differential Revision: https://reviews.llvm.org/D53339
llvm-svn: 345167
Diffstat (limited to 'clang/test/CodeGen/arm64_vdupq_n_f64.c')
0 files changed, 0 insertions, 0 deletions