summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/availability.c
Commit message (Collapse)AuthorAgeFilesLines
* Support Swift in platform availability attributeMichael Wu2018-11-121-0/+5
| | | | | | | | | | | | | | Summary: This adds support for Swift platform availability attributes. It's largely a port of the changes made to https://github.com/apple/swift-clang/ for Swift availability attributes. Specifically, https://github.com/apple/swift-clang/commit/84b5a21c31cb5b0d7d958a478bc01964939b6952 and https://github.com/apple/swift-clang/commit/e5b87f265aede41c8381094bbf54e2715c8293b0 . The implementation of attribute_availability_swift is a little different and additional tests in test/Index/availability.c were added. Reviewers: manmanren, friss, doug.gregor, arphaman, jfb, erik.pilkington, aaron.ballman Reviewed By: aaron.ballman Subscribers: aaron.ballman, ColinKinloch, jrmuizel, cfe-commits Differential Revision: https://reviews.llvm.org/D50318 llvm-svn: 346633
* Recommit r305117: [libclang] Merge multiple availability clauses whenAlex Lorenz2017-06-121-8/+10
| | | | | | | | | | getting the platform's availability Patch by Ronald Wampler! Differential Revision: https://reviews.llvm.org/D33478 llvm-svn: 305221
* Revert r305117Alex Lorenz2017-06-091-10/+8
| | | | | | It caused `Index/availability.c` test failure on Linux llvm-svn: 305122
* [libclang] Merge multiple availability clauses when getting the platform'sAlex Lorenz2017-06-091-8/+10
| | | | | | | | | | availability Patch by Ronald Wampler! Differential Revision: https://reviews.llvm.org/D33478 llvm-svn: 305117
* AvailabilityAttr: we accept "macos" as the platform name.Manman Ren2016-06-281-2/+2
| | | | | | | | | | | | | | We continue accepting "macosx" but canonicalize it to "macos", When emitting diagnostics, we use "macOS" instead of "OS X". The PlatformName in TargetInfo is changed from "macosx" to "macos" so we can directly compare the Platform in AvailabilityAttr with the PlatformName in TargetInfo. rdar://26795172 rdar://26800775 llvm-svn: 274064
* [libclang] When querying for the availability of an enumerator, pick up the ↵Argyrios Kyrtzidis2013-10-151-0/+10
| | | | | | | | availability from the enum declaration. rdar://14789001. llvm-svn: 192718
* Robustify testDouglas Gregor2012-05-081-2/+6
| | | | llvm-svn: 156349
* Introduce a new libclang API to determine the platform availability ofDouglas Gregor2012-05-081-0/+6
a given entity, so that we can tell when the entity was introduced/deprecated/obsoleted on each platform for which we have an annotation. Addresses <rdar://problem/11365715>. llvm-svn: 156347
OpenPOWER on IntegriCloud