[PATCH] D33478: [libclang] When getting platform availabilities, merge multiple declarations if possible

Ronald Wampler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 08:34:50 PDT 2017


rdwampler updated this revision to Diff 101569.
rdwampler added a comment.

Rearrange `if` statements in `getCursorPlatformAvailabilityForDecl` to return early if we do not need to merge availability attributes.
Use ranged for loop.


https://reviews.llvm.org/D33478

Files:
  test/Index/availability.c
  tools/libclang/CIndex.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33478.101569.patch
Type: text/x-patch
Size: 8481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170606/44accb3d/attachment.bin>


More information about the cfe-commits mailing list