[PATCH] D145778: [clang-tidy] Change readability-magic-numbers to allow numbers in type aliases.

Florian Humblot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 10 04:06:51 PST 2023


florianhumblot updated this revision to Diff 504089.
florianhumblot edited the summary of this revision.
florianhumblot added a comment.

Made it so that the proposed change doesn't change the default behavior of the check.
Introduce an option to allow enabling the exclusion.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145778/new/

https://reviews.llvm.org/D145778

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: D145778.504089.patch
Type: text/x-patch
Size: 7737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230310/7fc80dd6/attachment.bin>


More information about the cfe-commits mailing list