Details
Details
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Can we avoid the duplication by putting this check in Sema::ParsedFreeStandingDeclSpec instead?
Comment Actions
I thought the template case wasn't using the same codepath, but apparently I was just confusing myself. The exact form "template <typename T> friend class Y;" triggers an early out in Sema::ActOnFriendTypeDecl, so my code wasn't getting hit. I'll revise accordingly.
Comment Actions
Move declspec checks before call to GetTypeForDeclarator, since it can fail for class templates.