[all-commits] [llvm/llvm-project] d4b45b: [clang-tidy] Change readability-magic-numbers to a...
Florian Humblot via All-commits
all-commits at lists.llvm.org
Fri Mar 10 06:00:47 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d4b45b93fa56622ee5f935c066f43b15b856f3b8
https://github.com/llvm/llvm-project/commit/d4b45b93fa56622ee5f935c066f43b15b856f3b8
Author: Florian Humblot <me at florianhumblot.com>
Date: 2023-03-10 (Fri, 10 Mar 2023)
Changed paths:
M clang-tools-extra/clang-tidy/readability/MagicNumbersCheck.cpp
M clang-tools-extra/clang-tidy/readability/MagicNumbersCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/docs/clang-tidy/checks/readability/magic-numbers.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/magic-numbers.cpp
Log Message:
-----------
[clang-tidy] Change readability-magic-numbers to allow numbers in type aliases.
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
Reviewed By: PiotrZSL
Differential Revision: https://reviews.llvm.org/D145778
More information about the All-commits
mailing list