This is an archive of the discontinued LLVM Phabricator instance.

[index] Nested class declarations should be annotated with the "specializationOf" relation if they pseudo-override a type in the base template
ClosedPublic

Authored by arphaman on Jun 20 2017, 3:05 AM.

Details

Summary

This fixes an issue where Xcode's renaming engine couldn't find the reference to the second occurrence of "InnerClass" in this example:

template<typename T> struct Ts { template<typename U> struct InnerClass { }; };

template<> struct Ts<int> { template<typename U> struct InnerClass; // This occurrence wasn't renamed
};

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman created this revision.Jun 20 2017, 3:05 AM
benlangmuir accepted this revision.Jun 20 2017, 10:41 AM
This revision is now accepted and ready to land.Jun 20 2017, 10:41 AM
This revision was automatically updated to reflect the committed changes.