]> granicus.if.org Git - clang/commit
[Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.
authorVolodymyr Sapsai <vsapsai@apple.com>
Thu, 29 Mar 2018 17:34:09 +0000 (17:34 +0000)
committerVolodymyr Sapsai <vsapsai@apple.com>
Thu, 29 Mar 2018 17:34:09 +0000 (17:34 +0000)
commitd0c687aaf82c4343b63d5f97cd79a15bec3f6b26
tree0fc167aff13ad6cde785e6099eb168b039b50f1e
parentf7f26e44292421968b3266fa0af9e43117c33eea
[Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.

Deprecation replacement can be any text but if it looks like a name of
ObjC method and has the same number of arguments as original method,
replace all slot names so after applying a fix-it you have valid code.

rdar://problem/36660853

Reviewers: aaron.ballman, erik.pilkington, rsmith

Reviewed By: erik.pilkington

Subscribers: cfe-commits, jkorous-apple

Differential Revision: https://reviews.llvm.org/D44589

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328807 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/CharInfo.h
include/clang/Sema/DelayedDiagnostic.h
include/clang/Sema/Sema.h
lib/Sema/DelayedDiagnostic.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/attr-deprecated-replacement-fixit.m [new file with mode: 0644]
unittests/Basic/CharInfoTest.cpp