rsmith added inline comments.
================
Comment at: lib/Sema/SemaDecl.cpp:8652
@@ +8651,3 @@
+///
+bool Sema::shouldLinkDependentDeclWithPrevious(Decl *D, Decl *PrevDecl) {
+ DeclContext *LexicalDC = D->getLexicalDeclContext();
----------------
Most of the logic in this function can be replaced by something much simpler,
such as
`return !(D->getFriendObjectKind() &&
D->getLexicalDeclContext()->isDependentContext());`
Can you try to make such a simplification? Can we use the above as the
criterion here?
https://reviews.llvm.org/D16989
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits