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/Sema/SemaDecl.cpp | |
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/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index d8740d2beb1..2f50b701cad 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -2196,7 +2196,8 @@ static bool mergeDeclAttribute(Sema &S, NamedDecl *D, NewAttr = S.mergeAvailabilityAttr(D, AA->getRange(), AA->getPlatform(), AA->getIntroduced(), AA->getDeprecated(), AA->getObsoleted(), AA->getUnavailable(), - AA->getMessage(), AA->getStrict(), AMK, + AA->getMessage(), AA->getStrict(), + AA->getReplacement(), AMK, AttrSpellingListIndex); else if (const auto *VA = dyn_cast<VisibilityAttr>(Attr)) NewAttr = S.mergeVisibilityAttr(D, VA->getRange(), VA->getVisibility(), |