Eugene.Zelenko added a comment. It's highly likely that this part of coding guidelines.
================ Comment at: clang-tidy/readability/MagicNumbersCheck.cpp:42 + + const auto &Parents = Result.Context->getParents(*MatchedDecl); + for (const auto &Parent : Parents) { ---------------- Please don't use auto where type is not easily deducible. Same in other places. ================ Comment at: docs/ReleaseNotes.rst:60 +- New `readability-magic-numbers + <http://clang.llvm.org/extra/clang-tidy/checks/readability-magic-numbers.html>`_ check ---------------- Please move into new checks list in alphabetical order. ================ Comment at: docs/ReleaseNotes.rst:63 + + Detect usage of magic numbers, numbers that are used as literals instead of + introduced via constants or symbols. ---------------- Please use //Detects//. ================ Comment at: docs/clang-tidy/checks/readability-magic-numbers.rst:11 + + double circleArea = 3.1415926535 * radius * radius; + ---------------- JonasToth wrote: > This example is good, but right now the code only checks for integer > literals. Maybe an integer example would be better? Please use .. code-block:: c++. Same for good example. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49114 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits