[PATCH] D49114: [clang-tidy] Add a check for "magic numbers"

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 24 19:11:54 PDT 2018


Eugene.Zelenko added inline comments.


================
Comment at: docs/clang-tidy/checks/readability-magic-numbers.rst:56
+By default only `0`, `1` and `-1` integer values are accepted without a warning.
+This can be overridden with the 'IgnoredIntegerValues' option.  In addition,
+the `0.0` floating point value is accepted. There is no configuration for
----------------
Sorry, almost forgot. Please prefix IgnoredIntegerValues with :option:. You still need to use ` for it.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D49114





More information about the cfe-commits mailing list