SuccessChanges

Summary

  1. Add a fix-it for -Wunguarded-availability 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
Revision 302253 by arphaman:
Add a fix-it for -Wunguarded-availability

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
Change TypePath in RepositoryPath in Workspace
The file was modified/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (diff)llvm-revision.src/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
The file was modified/cfe/trunk/include/clang/Lex/Lexer.h (diff)llvm-revision.src/cfe/trunk/include/clang/Lex/Lexer.h
The file was modified/cfe/trunk/lib/Lex/Lexer.cpp (diff)llvm-revision.src/cfe/trunk/lib/Lex/Lexer.cpp
The file was modified/cfe/trunk/lib/Sema/SemaDeclAttr.cpp (diff)llvm-revision.src/cfe/trunk/lib/Sema/SemaDeclAttr.cpp
The file was added/cfe/trunk/test/FixIt/fixit-availability.cllvm-revision.src/cfe/trunk/test/FixIt/fixit-availability.c
The file was added/cfe/trunk/test/FixIt/fixit-availability.mmllvm-revision.src/cfe/trunk/test/FixIt/fixit-availability.mm
The file was modified/cfe/trunk/test/Sema/attr-availability.c (diff)llvm-revision.src/cfe/trunk/test/Sema/attr-availability.c