Add the abseil-duration-factory-scale check.
authorAaron Ballman <aaron@aaronballman.com>
Sun, 18 Nov 2018 16:41:06 +0000 (16:41 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 18 Nov 2018 16:41:06 +0000 (16:41 +0000)
commit639c87ef53cda0f8abdd865502e9f11636deb195
tree45d1758be4f145f6b5f0888e1c5f8c26cf028d2b
parentfec9f8657b5cea6ad99cf95ef3524d98ae975b97
Add the abseil-duration-factory-scale check.

This check removes unneeded scaling of arguments when calling Abseil Time factory functions.

Patch by Hyrum Wright.

llvm-svn: 347163
clang-tools-extra/clang-tidy/abseil/AbseilTidyModule.cpp
clang-tools-extra/clang-tidy/abseil/CMakeLists.txt
clang-tools-extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/abseil/DurationFactoryScaleCheck.h [new file with mode: 0644]
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/test/clang-tidy/abseil-duration-factory-scale.cpp [new file with mode: 0644]