summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit-availability.c
Commit message (Collapse)AuthorAgeFilesLines
* unguarded availability: add a fixit for the "annotate '...'Alex Lorenz2017-07-261-0/+8
| | | | | | | | | | with an availability attribute to silence" note rdar://33539233 Differential Revision: https://reviews.llvm.org/D35726 llvm-svn: 309116
* Add support for pretty platform names to `@available`/Alex Lorenz2017-05-091-1/+1
| | | | | | | | | | | | | `__builtin_available` This commit allows us to use the macOS/iOS/tvOS/watchOS platform names in `@available`/`__builtin_available`. rdar://32067795 Differential Revision: https://reviews.llvm.org/D33000 llvm-svn: 302540
* Add a fix-it for -Wunguarded-availabilityAlex Lorenz2017-05-051-0/+10
This patch adds a fix-it for the -Wunguarded-availability warning. This fix-it is similar to the Swift one: it suggests that you wrap the statement in an `if (@available)` check. The produced fixits are indented (just like the Swift ones) to make them look nice in Xcode's fix-it preview. rdar://31680358 Differential Revision: https://reviews.llvm.org/D32424 llvm-svn: 302253
OpenPOWER on IntegriCloud