[PATCH] D140044: [CodeComplete] Complete members of dependent `auto` variables

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 14 11:53:29 PST 2022


sammccall created this revision.
sammccall added a reviewer: hokein.
Herald added a project: All.
sammccall requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

When the initializer of an `auto` variable is dependent, clang doesn't give the
DeclRefExpr a useful dependent type that we can apply heuristics to.
However we can dig one up by looking at the initializer.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140044

Files:
  clang/lib/Sema/SemaCodeComplete.cpp
  clang/test/CodeCompletion/member-access.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140044.482954.patch
Type: text/x-patch
Size: 14081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221214/e9888b3f/attachment-0001.bin>


More information about the cfe-commits mailing list