From d8a98fe5f009f699ed2f4df53b58a974383f7573 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Fri, 4 Oct 2024 12:10:16 +0200 Subject: [PATCH] linter: check options for readability-magic-numbers --- .clang-tidy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 25e1302cc..40af3efd6 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -42,3 +42,7 @@ CheckOptions: value: 2 - key: readability-identifier-length.MinimumVariableNameLength value: 2 + - key: readability-magic-numbers.IgnoreAllFloatingPointValues + value: true + - key: readability-magic-numbers.IgnorePowersOf2IntegerValues + value: true