Przeglądaj źródła

linter: check options for readability-magic-numbers

Michele Caini 1 rok temu
rodzic
commit
d8a98fe5f0
1 zmienionych plików z 4 dodań i 0 usunięć
  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