[PATCH] Suggest automated replacements of C-style casts with C++ casts.

Alexander Kornienko alexfh at google.com
Fri Jul 11 18:08:41 PDT 2014


Hi djasper, sbenza,

This patch implements a subset of possible replacements of C-style
casts with const_cast/static_cast/reinterpret_cast. This should cover a large
portion of cases in real code. Handling of a few more cases may be implemented
eventually.

http://reviews.llvm.org/D4478

Files:
  clang-tidy/google/AvoidCStyleCastsCheck.cpp
  test/clang-tidy/avoid-c-style-casts.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4478.11333.patch
Type: text/x-patch
Size: 7525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140712/dd6a9afc/attachment.bin>


More information about the cfe-commits mailing list