[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
Sun Jun 11 19:39:34 PDT 2017
rdwampler updated this revision to Diff 102150.
rdwampler added a comment.
I was able to build and test this on a linux box. The issue was the whitespace surrounding the regex.
On Linux, `(unavailable)` is not present. I.e,
`FunctionDecl=foo:3:6 (ios, introduced=3.2, deprecated=4.1) (macos, introduced=10.4, deprecated=10.5, obsoleted=10.7)`
vs on macOS
`FunctionDecl=foo:3:6 (unavailable) (ios, introduced=3.2, deprecated=4.1) (unavailable) (macos, introduced=10.4, deprecated=10.5, obsoleted=10.7)`
I changed it to just match any characters between the function declaration and the availabilities.
Sorry for the noise.
https://reviews.llvm.org/D33478
Files:
test/Index/availability.c
tools/libclang/CIndex.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33478.102150.patch
Type: text/x-patch
Size: 9183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170612/4d4f5ca7/attachment-0001.bin>
More information about the cfe-commits
mailing list