[PATCH] [clang-tidy] Add a checker for implicit bool conversion of a bool*.

Benjamin Kramer benny.kra at gmail.com
Thu Jul 10 08:35:22 PDT 2014


Allow delete expressions in the if block. I also tried to extend the callExpr filter to allow calls with implicit conversions on the arguments. Sadly hasAnyArgument has the annoying behavior of stripping all implicit casts early so this is a FIXME for now.

http://reviews.llvm.org/D4458

Files:
  clang-tidy/misc/BoolPointerImplicitConversion.cpp
  clang-tidy/misc/BoolPointerImplicitConversion.h
  clang-tidy/misc/CMakeLists.txt
  clang-tidy/misc/MiscTidyModule.cpp
  test/clang-tidy/misc-bool-pointer-implicit-conversion.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4458.11276.patch
Type: text/x-patch
Size: 7208 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140710/bb01726c/attachment.bin>


More information about the cfe-commits mailing list