[PATCH] D145780: [clang-tidy] Introduce option to allow magic numbers in type aliases
Florian Humblot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 10 03:28:10 PST 2023
florianhumblot created this revision.
Herald added subscribers: PiotrZSL, carlosgalvezp, jeroen.dobbelaere, xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
florianhumblot requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
This commit introduces an option to the readability-magic-values checker.
The option defaults to false so that the behavior of the checker doesn't change unless specifically enabled.
These commits are supposed to fix https://github.com/llvm/llvm-project/issues/61259
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145780
Files:
clang-tools-extra/clang-tidy/readability/MagicNumbersCheck.cpp
clang-tools-extra/clang-tidy/readability/MagicNumbersCheck.h
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/readability/magic-numbers.rst
clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers-type-aliases.cpp
clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145780.504081.patch
Type: text/x-patch
Size: 7382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230310/35efed08/attachment-0001.bin>
More information about the cfe-commits
mailing list