[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 9 19:13:53 PST 2019
hwright created this revision.
hwright added reviewers: hokein, aaron.ballman.
hwright added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
This suggests simplifying expressions which are casting conversion functions, such as `static_cast<int>(absl::ToDoubleSeconds(...))`
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D56532
Files:
clang-tidy/abseil/AbseilTidyModule.cpp
clang-tidy/abseil/CMakeLists.txt
clang-tidy/abseil/DurationComparisonCheck.cpp
clang-tidy/abseil/DurationConversionCastCheck.cpp
clang-tidy/abseil/DurationConversionCastCheck.h
clang-tidy/abseil/DurationRewriter.cpp
clang-tidy/abseil/DurationRewriter.h
docs/ReleaseNotes.rst
docs/clang-tidy/checks/abseil-duration-conversion-cast.rst
docs/clang-tidy/checks/list.rst
test/clang-tidy/abseil-duration-conversion-cast.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56532.180988.patch
Type: text/x-patch
Size: 16955 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190110/9cf61650/attachment.bin>
More information about the cfe-commits
mailing list