We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b59b37 commit 284fa1bCopy full SHA for 284fa1b
clang-tools-extra/docs/clang-tidy/checks/modernize/use-std-numbers.rst
@@ -56,3 +56,19 @@ where appropriate.
56
floatSink(MY_PI); // floatSink(std::numbers::pi);
57
floatSink(static_cast<float>(MY_PI)); // floatSink(std::numbers::pi_v<float>);
58
}
59
+
60
+Options
61
+-------
62
63
+.. option:: DiffThreshold
64
65
+ A floating point value that sets the detection threshold for when literals
66
+ match a constant.
67
+ A literal matches a constant if
68
+ ``abs(literal - constant) < DiffThreshold`` evaluates to true.
69
+ Default is `0.001`.
70
71
+.. option:: IncludeStyle
72
73
+ A string specifying which include-style is used, `llvm` or `google`. Default
74
+ is `llvm`.
0 commit comments