Browse Source

linter: check options for readability-magic-numbers

Michele Caini 1 year ago
parent
commit
d8a98fe5f0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      .clang-tidy

+ 4 - 0
.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