Home
last modified time | relevance | path

Searched refs:getFriendDecl (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclFriend.h138 NamedDecl *getFriendDecl() const { in getFriendDecl() function
149 if (NamedDecl *ND = getFriendDecl()) { in getSourceRange()
H A DASTNodeTraverser.h642 Visit(D->getFriendDecl()); in VisitFriendDecl()
H A DRecursiveASTVisitor.h1568 TRY_TO(TraverseDecl(D->getFriendDecl()));
1575 TRY_TO(TraverseDecl(D->getFriendDecl()));
H A DDeclTemplate.h2517 NamedDecl *getFriendDecl() const {
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTCommon.h102 LexicalD = FD->getFriendDecl(); in numberAnonymousDeclsWithin()
H A DASTWriterDecl.cpp1480 Record.AddDeclRef(D->getFriendDecl()); in VisitFriendDecl()
1496 Record.push_back(D->getFriendDecl() != nullptr); in VisitFriendTemplateDecl()
1497 if (D->getFriendDecl()) in VisitFriendTemplateDecl()
1498 Record.AddDeclRef(D->getFriendDecl()); in VisitFriendTemplateDecl()
H A DASTReader.cpp10697 const NamedDecl *FirstND = FirstFriend->getFriendDecl(); in diagnoseOdrViolations()
10698 const NamedDecl *SecondND = SecondFriend->getFriendDecl(); in diagnoseOdrViolations()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTStructuralEquivalence.cpp1905 if ((D1->getFriendType() && D2->getFriendDecl()) || in IsStructurallyEquivalent()
1906 (D1->getFriendDecl() && D2->getFriendType())) { in IsStructurallyEquivalent()
1913 if (D1->getFriendDecl() && D2->getFriendDecl()) in IsStructurallyEquivalent()
1914 return IsStructurallyEquivalent(Context, D1->getFriendDecl(), in IsStructurallyEquivalent()
1915 D2->getFriendDecl()); in IsStructurallyEquivalent()
H A DDeclPrinter.cpp809 dyn_cast<FunctionDecl>(D->getFriendDecl())) { in VisitFriendDecl()
814 dyn_cast<FunctionTemplateDecl>(D->getFriendDecl())) { in VisitFriendDecl()
819 dyn_cast<ClassTemplateDecl>(D->getFriendDecl())) { in VisitFriendDecl()
H A DODRHash.cpp370 AddDecl(D->getFriendDecl()); in VisitFriendDecl()
H A DASTImporter.cpp3882 } else if (!FoundFriend->getFriendDecl() == !FD->getFriendDecl() && in getFriendCountAndPosition()
3902 if (Decl *D = F->getFriendDecl()) in getFriendCountAndPosition()
3923 if (D->getFriendDecl() && ImportedFriend->getFriendDecl()) { in VisitFriendDecl()
3925 IsStructuralMatch(D->getFriendDecl(), ImportedFriend->getFriendDecl(), in VisitFriendDecl()
3948 if (NamedDecl *FriendD = D->getFriendDecl()) { in VisitFriendDecl()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexDecl.cpp743 if (auto ND = D->getFriendDecl()) { in VisitFriendDecl()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAccess.cpp565 = cast<NamedDecl>(FriendD->getFriendDecl()->getCanonicalDecl()); in MatchesFriend()
H A DSema.cpp994 dyn_cast<FunctionDecl>((*I)->getFriendDecl())) in IsRecordFullyDefined()
H A DSemaDeclCXX.cpp5995 D = FD->getFriendDecl(); in CheckAbstractClassUsage()
6986 dyn_cast_or_null<FunctionDecl>(F->getFriendDecl())); in CheckCompletedCXXClass()
8622 F->getFriendDecl()->getCanonicalDecl(); in CheckExplicitlyDefaultedComparison()
10153 FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(Friend->getFriendDecl()); in findImplicitlyDeclaredEqualityComparisons()
H A DSemaTemplateInstantiateDecl.cpp1370 NamedDecl *ND = D->getFriendDecl(); in VisitFriendDecl()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp2631 ->getFriendDecl()); in TEST_P()
4027 EXPECT_NE(Friend->getFriendDecl(), Class); in TEST_P()
4028 EXPECT_EQ(Friend->getFriendDecl()->getPreviousDecl(), Class); in TEST_P()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp1300 if (NamedDecl *FriendD = D->getFriendDecl()) { in VisitFriendDecl()
6840 if (NamedDecl *Friend = cast<FriendDecl>(D)->getFriendDecl()) in clang_getCursorDefinition()
6845 if (NamedDecl *Friend = cast<FriendTemplateDecl>(D)->getFriendDecl()) in clang_getCursorDefinition()