[PATCH] D60257: [Lookup] Invisible decls should not be ambiguous when renaming.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 4 03:30:58 PDT 2019


ioeric created this revision.
ioeric added a reviewer: hokein.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

For example, a renamed type in a header file can conflict with declaration in
a random file that includes the header, but we should not consider the decl ambiguous if
it's not visible at the rename location. This improves consistency of generated replacements
when header file is included in different TUs.


Repository:
  rC Clang

https://reviews.llvm.org/D60257

Files:
  include/clang/Tooling/Core/Lookup.h
  lib/Tooling/Core/Lookup.cpp
  lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  unittests/Tooling/LookupTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60257.193682.patch
Type: text/x-patch
Size: 7438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190404/a5b79810/attachment-0001.bin>


More information about the cfe-commits mailing list