Lines Matching defs:ToFriend
2976 auto *ToFriend = cast<FunctionDecl>(Import(FromFriend, Lang_CXX03));
2977 auto ToName = ToFriend->getDeclName();
2988 ToFriend = FirstDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
2990 EXPECT_TRUE(ToFriend->isInIdentifierNamespace(Decl::IDNS_OrdinaryFriend));
2991 EXPECT_FALSE(ToFriend->isInIdentifierNamespace(Decl::IDNS_Ordinary));
3032 auto *ToFriend = LastDeclMatcher<FunctionDecl>().match(ToTU, FunctionPattern);
3035 EXPECT_TRUE(ToFriend->isInIdentifierNamespace(Decl::IDNS_OrdinaryFriend));
3036 EXPECT_TRUE(ToFriend->isInIdentifierNamespace(Decl::IDNS_Ordinary));
3105 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
3109 EXPECT_EQ(Fr, ToFriend);
4174 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToD, friendDecl());
4176 cast<ClassTemplateDecl>(ToFriend->getFriendDecl())->getTemplatedDecl();
4293 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTu, friendDecl());
4295 const_cast<RecordDecl *>(getRecordDeclOfFriend(ToFriend));
6174 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(To, friendDecl());
6178 EXPECT_TRUE(ToFriend ==
6190 auto *ToDecl = ToFriend->getFriendDecl();
6191 auto *ToDC = ToFriend->getDeclContext();
6192 auto *ToLexicalDC = ToFriend->getLexicalDeclContext();
6194 EXPECT_TRUE(ToDC->containsDecl(ToFriend));
6196 EXPECT_TRUE(ToLexicalDC->containsDecl(ToFriend));