[PATCH] D81263: [Sema][CodeComplete][ObjC] Don't include arrow/dot fixits
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 8 01:35:29 PDT 2020
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/lib/Sema/SemaCodeComplete.cpp:5153
- auto DoCompletion = [&](Expr *Base, bool IsArrow,
+ auto DoCompletion = [&](Expr *Base, bool IsArrow, bool IncludeObjC,
Optional<FixItHint> AccessOpFixIt) -> bool {
----------------
IncludeObjC is always `!AccessOpFixIt.hasValue()` - use that directly with a suitable comment?
================
Comment at: clang/lib/Sema/SemaCodeComplete.cpp:5251
+
+ // Fixits are only included for C++. We avoid this for Objective-C properties
+ // and ivars since most properties are backed by an ivar; otherwise we would
----------------
This first sentence isn't accurate - they're included for C, and even in obj-c, just not for obj-c objects.
I'd suggest dropping it and also the note about alternative solutions, unless there's a reason we're likely to want to do that instead in the future.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81263/new/
https://reviews.llvm.org/D81263
More information about the cfe-commits
mailing list