[PATCH] D36456: [clang-tidy] 'implicit cast' -> 'implicit conversion'

Alexander Kornienko via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 8 03:27:17 PDT 2017


alexfh created this revision.
Herald added subscribers: xazax.hun, JDevlieghere, mgorny.

This patch renames checks, check options and changes messages to use correct
term "implicit conversion" instead of "implicit cast" (which has been in use in
Clang AST since ~10 years, but it's still technically incorrect w.r.t. C++
standard).

- performance-implicit-cast-in-loop -> performance-implicit-conversion-in-loop
- readability-implicit-bool-cast -> readability-implicit-bool-conversion
  - readability-implicit-bool-cast.AllowConditionalIntegerCasts -> readability-implicit-bool-conversion.AllowIntegerConditions
  - readability-implicit-bool-cast.AllowConditionalPointerCasts -> readability-implicit-bool-conversion.AllowPointerConditions


https://reviews.llvm.org/D36456

Files:
  clang-tidy/performance/CMakeLists.txt
  clang-tidy/performance/ImplicitCastInLoopCheck.cpp
  clang-tidy/performance/ImplicitCastInLoopCheck.h
  clang-tidy/performance/ImplicitConversionInLoopCheck.cpp
  clang-tidy/performance/ImplicitConversionInLoopCheck.h
  clang-tidy/performance/PerformanceTidyModule.cpp
  clang-tidy/readability/CMakeLists.txt
  clang-tidy/readability/ImplicitBoolCastCheck.cpp
  clang-tidy/readability/ImplicitBoolCastCheck.h
  clang-tidy/readability/ImplicitBoolConversionCheck.cpp
  clang-tidy/readability/ImplicitBoolConversionCheck.h
  clang-tidy/readability/ReadabilityTidyModule.cpp
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/performance-implicit-cast-in-loop.rst
  docs/clang-tidy/checks/performance-implicit-conversion-in-loop.rst
  docs/clang-tidy/checks/readability-implicit-bool-cast.rst
  docs/clang-tidy/checks/readability-implicit-bool-conversion.rst
  test/clang-tidy/performance-implicit-cast-in-loop.cpp
  test/clang-tidy/performance-implicit-conversion-in-loop.cpp
  test/clang-tidy/readability-implicit-bool-cast-allow-conditional-casts.cpp
  test/clang-tidy/readability-implicit-bool-cast-cxx98.cpp
  test/clang-tidy/readability-implicit-bool-cast.cpp
  test/clang-tidy/readability-implicit-bool-conversion-allow-in-conditions.cpp
  test/clang-tidy/readability-implicit-bool-conversion-cxx98.cpp
  test/clang-tidy/readability-implicit-bool-conversion.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36456.110165.patch
Type: text/x-patch
Size: 53454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170808/73ac9234/attachment-0001.bin>


More information about the cfe-commits mailing list