[PATCH] Refactor UseNullptr matcher to avoid duplication

Ariel Bernal ariel.j.bernal at intel.com
Mon Apr 1 09:09:30 PDT 2013


Hi tareqsiraj, revane,

Previously UseNullptr matched separately implicit and explicit casts to nullptr, now it matches casts that either are implicit casts to nullptr or have an implicit cast to nullptr within.

Also fixes PR15572 since the same macro replacement logic is applied to implicit and explicit casts.

http://llvm-reviews.chandlerc.com/D604

Files:
  cpp11-migrate/UseNullptr/NullptrActions.cpp
  cpp11-migrate/UseNullptr/NullptrMatchers.cpp
  cpp11-migrate/UseNullptr/NullptrMatchers.h
  cpp11-migrate/UseNullptr/UseNullptr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D604.1.patch
Type: text/x-patch
Size: 10765 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130401/ede9ddbd/attachment.bin>


More information about the cfe-commits mailing list