[PATCH] D146712: [clang-tidy] Add portability-non-portable-integer-constant check
Discookie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 23 05:16:42 PDT 2023
Discookie created this revision.
Discookie added reviewers: aaron.ballman, njames93, carlosgalvezp.
Discookie added a project: clang-tools-extra.
Herald added subscribers: PiotrZSL, ChuanqiXu, xazax.hun.
Herald added a project: All.
Discookie requested review of this revision.
This check finds integer literals that are being used in a non-portable manner.
Currently, the check detects cases where maximum or minimum values should be used
instead, as well as error-prone integer literals having leading zeroes, or
relying on most significant bits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146712
Files:
clang-tools-extra/clang-tidy/cert/CERTTidyModule.cpp
clang-tools-extra/clang-tidy/cert/CMakeLists.txt
clang-tools-extra/clang-tidy/portability/CMakeLists.txt
clang-tools-extra/clang-tidy/portability/NonPortableIntegerConstantCheck.cpp
clang-tools-extra/clang-tidy/portability/NonPortableIntegerConstantCheck.h
clang-tools-extra/clang-tidy/portability/PortabilityTidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/cert/int17-c.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/portability/non-portable-integer-constant.rst
clang-tools-extra/test/clang-tidy/checkers/portability/non-portable-integer-constant.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146712.507704.patch
Type: text/x-patch
Size: 28562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230323/876d9f94/attachment-0001.bin>
More information about the cfe-commits
mailing list