Explorar o código

linter: check options for readability-magic-numbers

Michele Caini hai 1 ano
pai
achega
d8a98fe5f0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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