[PATCH] D44589: [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 16 15:08:58 PDT 2018


vsapsai created this revision.
vsapsai added reviewers: aaron.ballman, erik.pilkington.
Herald added a subscriber: jkorous-apple.

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


https://reviews.llvm.org/D44589

Files:
  clang/include/clang/Basic/SourceLocation.h
  clang/include/clang/Sema/DelayedDiagnostic.h
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/DelayedDiagnostic.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaExprObjC.cpp
  clang/test/SemaObjC/attr-deprecated-replacement-fixit.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44589.138779.patch
Type: text/x-patch
Size: 26133 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180316/26e9a7ed/attachment-0001.bin>


More information about the cfe-commits mailing list