[Sema][CodeComplete][ObjC] Don't include arrow/dot fixits
authorDavid Goldman <davg@google.com>
Fri, 5 Jun 2020 14:57:33 +0000 (10:57 -0400)
committerDavid Goldman <davg@google.com>
Mon, 8 Jun 2020 16:46:00 +0000 (12:46 -0400)
commit2ef65adb6f9dbebdd250dc6210e813711fb478d9
tree189c2c595fb7bc92714ded327784e0afd4f4c966
parentd26721776ff08e0ecdd73b8851c44032d7c0a366
[Sema][CodeComplete][ObjC] Don't include arrow/dot fixits

Summary:
Exempt ObjC from arrow/dot fixits since this has limited value for
Objective-C, where properties (referenced by dot syntax) are normally
backed by ivars (referenced by arrow syntax).

In addition, the current implementation doesn't properly mark
the fix it condition for Objective-C.

This was initially added in https://reviews.llvm.org/D41537
for C++ and then later C, don't believe the Objective-C changes
were intentional.

Reviewers: sammccall, yvvan

Subscribers: jfb, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81263
clang/lib/Sema/SemaCodeComplete.cpp
clang/test/CodeCompletion/objc-member-access.m [new file with mode: 0644]