[PATCH] D27132: Do not do raw name replacement when FromDecl is a class forward-declaration.

Eric Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 25 07:46:17 PST 2016


ioeric created this revision.
ioeric added a reviewer: bkramer.
ioeric added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

If the `FromDecl` is a class forward declaration, the reference is
still considered as referring to the original definition given the nature
of forward-declarations, so we can't do a raw name replacement in this case.


https://reviews.llvm.org/D27132

Files:
  lib/Tooling/Core/Lookup.cpp
  unittests/Tooling/LookupTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27132.79306.patch
Type: text/x-patch
Size: 4248 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161125/9938e310/attachment-0001.bin>


More information about the cfe-commits mailing list