[PATCH] D65912: Add new check for math constants
Alexander Zaitsev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 7 17:27:08 PDT 2019
ZaMaZaN4iK created this revision.
ZaMaZaN4iK added reviewers: JonasToth, Szelethus, aaron.ballman, lebedev.ri.
ZaMaZaN4iK added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.
Hello.
I found quite interesting and useful FMPOV check for Clang Tidy - description <https://www.viva64.com/en/w/v624>, examples <https://www.viva64.com/en/examples/v624/>. Whole sense is in using standard (from cmath or math.h or math headers) math constants instead of written from scratch.
This patch is in status WIP. The main question is - do we want to see such check in Clang Tidy and should I continue work on it?
Thank you.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D65912
Files:
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
clang-tools-extra/clang-tidy/misc/MathConstantsCheck.cpp
clang-tools-extra/clang-tidy/misc/MathConstantsCheck.h
clang-tools-extra/clang-tidy/misc/MiscTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/misc-math-constants.rst
clang-tools-extra/test/clang-tidy/misc-math-constants.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65912.214039.patch
Type: text/x-patch
Size: 25418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190808/8915b335/attachment-0001.bin>
More information about the cfe-commits
mailing list