[PATCH] D52892: [Clang-tidy] readability check to convert numerical constants to std::numeric_limits

Eugene Zelenko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 8 10:01:04 PDT 2018


Eugene.Zelenko added inline comments.


================
Comment at: docs/ReleaseNotes.rst:118
+
+  Checks for numerical unsigned constants that are equal to '-1' or '~0'
+  and substitutes them with 'std::numeric_limits<type>::max()'.
----------------
Wrong kind of quotes were used. Should be `. std::numeric_limits<type>::max() Should be enclosed in ``.


================
Comment at: docs/clang-tidy/checks/readability-numerical-costants-to-max-int.rst:7
+
+Checks for numerical unsigned constants that are equal to '-1' or '~0'
+and substitutes them with 'std::numeric_limits<type>::max()'.
----------------
Please re-synchronize.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52892





More information about the cfe-commits mailing list