[PATCH] D33470: [clang-tidy] Add misc-default-numerics
Alexander Shaposhnikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 25 14:00:55 PDT 2017
alexshap added inline comments.
================
Comment at: clang-tidy/misc/DefaultNumericsCheck.h:20
+/// This check flags usages of ``std::numeric_limits<T>::{min,max}()`` for
+/// unspecialized types. It is dangerous because it returns T(), which might is
+/// rarely minimum or maximum for this type.
----------------
nit: (feel free to correct me)
replace
"which might is ..."
with
"which rarely might be minimum or maximum for this type"
https://reviews.llvm.org/D33470
More information about the cfe-commits
mailing list