This is an archive of the discontinued LLVM Phabricator instance.

[clang] Properly apply attributes on explicit instantiations of static data members
ClosedPublic

Authored by ldionne on Sep 28 2018, 4:05 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

ldionne created this revision.Sep 28 2018, 4:05 PM
ldionne changed the repository for this revision from rCXX libc++ to rC Clang.Sep 28 2018, 4:05 PM
ldionne edited subscribers, added: cfe-commits; removed: libcxx-commits.
aaron.ballman accepted this revision.Sep 28 2018, 5:36 PM

This seems reasonable to me, but I'd feel most comfortable if @rsmith also signed off on it.

This revision is now accepted and ready to land.Sep 28 2018, 5:36 PM
rnk accepted this revision.Oct 2 2018, 9:43 AM
rnk added a subscriber: rnk.

This code dates back to rL187762, which added this check. I think it should always pass for a variable template, but it fails for an explicit instantiation of a static data member of a class template. I think it's correct to remove it.

This revision was automatically updated to reflect the committed changes.