diff options
| author | Manman Ren <manman.ren@gmail.com> | 2016-03-17 03:09:55 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2016-03-17 03:09:55 +0000 |
| commit | a7c4760c8efa0e7ad3564bb1a0966bf8940463cf (patch) | |
| tree | d404671d0d800ddb0aea795b9c87a16cd3e7f5b0 /clang/lib/Lex | |
| parent | b76c02771786ecb235ed6da6dda845e2a06330be (diff) | |
| download | bcm5719-llvm-a7c4760c8efa0e7ad3564bb1a0966bf8940463cf.tar.gz bcm5719-llvm-a7c4760c8efa0e7ad3564bb1a0966bf8940463cf.zip | |
Add an optional named argument (replacement = "xxx") to AvailabilityAttr.
This commit adds a named argument to AvailabilityAttr, while r263652 adds an
optional string argument to __attribute__((deprecated)). This enables the
compiler to provide Fix-Its for deprecated declarations.
rdar://20588929
llvm-svn: 263687
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/PPMacroExpansion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPMacroExpansion.cpp b/clang/lib/Lex/PPMacroExpansion.cpp index 36255a81144..50ce2719d36 100644 --- a/clang/lib/Lex/PPMacroExpansion.cpp +++ b/clang/lib/Lex/PPMacroExpansion.cpp @@ -1074,6 +1074,7 @@ static bool HasFeature(const Preprocessor &PP, const IdentifierInfo *II) { .Case("attribute_availability_tvos", true) .Case("attribute_availability_watchos", true) .Case("attribute_availability_with_strict", true) + .Case("attribute_availability_with_replacement", true) .Case("attribute_availability_in_templates", true) .Case("attribute_cf_returns_not_retained", true) .Case("attribute_cf_returns_retained", true) |

