This is an archive of the discontinued LLVM Phabricator instance.

[rename] Use isPointWithin when looking for a declaration at location
AcceptedPublic

Authored by arphaman on Aug 15 2018, 1:07 PM.

Details

Summary

This patch is a followup to https://reviews.llvm.org/D50740 .

This patch fixes the issue where clang-refactor local-rename was unable to find a declaration in a header file if that header file was included more than once, and the location of the point of interest was in a different included instance of a file than then declaration itself. The use of isPointWithin ensures that we're checking if the point is in the source range regardless of the included file.

Diff Detail

Repository
rC Clang