Home
last modified time | relevance | path

Searched refs:FriendDecl (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclFriend.cpp27 void FriendDecl::anchor() {} in anchor()
29 FriendDecl *FriendDecl::getNextFriendSlowCase() { in getNextFriendSlowCase()
30 return cast_or_null<FriendDecl>( in getNextFriendSlowCase()
34 FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, in Create()
57 FriendDecl::additionalSizeToAlloc<TemplateParameterList *>( in Create()
59 auto *FD = new (C, DC, Extra) FriendDecl(DC, L, Friend, FriendL, in Create()
65 FriendDecl *FriendDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID, in CreateDeserialized()
69 return new (C, ID, Extra) FriendDecl(EmptyShell(), FriendTypeNumTPLists); in CreateDeserialized()
72 FriendDecl *CXXRecordDecl::getFirstFriend() const { in getFirstFriend()
75 return First ? cast<FriendDecl>(First) : nullptr; in getFirstFriend()
H A DASTImporterLookupTable.cpp49 bool VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
H A DODRDiagsEmitter.cpp1282 const FriendDecl *FirstFriend = cast<FriendDecl>(FirstDecl); in diagnoseMismatch()
1283 const FriendDecl *SecondFriend = cast<FriendDecl>(SecondDecl); in diagnoseMismatch()
H A DDeclPrinter.cpp70 void VisitFriendDecl(FriendDecl *D);
865 void DeclPrinter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
H A DASTImporter.cpp490 ExpectedDecl VisitFriendDecl(FriendDecl *D);
2037 return isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<FriendDecl>(D); in ImportDeclContext()
4289 static bool IsEquivalentFriend(ASTImporter &Importer, FriendDecl *FD1, in IsEquivalentFriend()
4290 FriendDecl *FD2) { in IsEquivalentFriend()
4307 FriendDecl *FD) { in getFriendCountAndPosition()
4312 for (FriendDecl *FoundFriend : RD->friends()) { in getFriendCountAndPosition()
4326 ExpectedDecl ASTNodeImporter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
4336 SmallVector<FriendDecl *, 2> ImportedEquivalentFriends; in VisitFriendDecl()
4337 for (FriendDecl *ImportedFriend : RD->friends()) in VisitFriendDecl()
4352 FriendDecl::FriendUnion ToFU; in VisitFriendDecl()
[all …]
H A DASTStructuralEquivalence.cpp2109 FriendDecl *D1, FriendDecl *D2) { in IsStructurallyEquivalent()
H A DODRHash.cpp456 void VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
H A DJSONNodeDumper.cpp1087 void JSONNodeDumper::VisitFriendDecl(const FriendDecl *FD) { in VisitFriendDecl()
H A DTextNodeDumper.cpp2694 void TextNodeDumper::VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclFriend.h52 class FriendDecl final
54 private llvm::TrailingObjects<FriendDecl, TemplateParameterList *> {
84 FriendDecl(DeclContext *DC, SourceLocation L, FriendUnion Friend, in FriendDecl() function
93 FriendDecl(EmptyShell Empty, unsigned NumFriendTypeTPLists) in FriendDecl() function
97 FriendDecl *getNextFriend() { in getNextFriend()
99 return cast_or_null<FriendDecl>(NextFriend.get(nullptr)); in getNextFriend()
103 FriendDecl *getNextFriendSlowCase();
111 static FriendDecl *
115 static FriendDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID,
189 FriendDecl *Ptr;
[all …]
H A DTextNodeDumper.h393 void VisitFriendDecl(const FriendDecl *D);
H A DJSONNodeDumper.h269 void VisitFriendDecl(const FriendDecl *FD);
H A DDeclCXX.h67 class FriendDecl; variable
503 FriendDecl *getFirstFriend() const;
699 void pushFriendDecl(FriendDecl *FD);
H A DASTNodeTraverser.h743 void VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
H A DRecursiveASTVisitor.h1596 DEF_TRAVERSE_DECL(FriendDecl, {
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.h77 if (auto *FD = dyn_cast<FriendDecl>(LexicalD)) in numberAnonymousDeclsWithin()
H A DASTReaderDecl.cpp414 void VisitFriendDecl(FriendDecl *D);
2345 void ASTDeclReader::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
3937 D = FriendDecl::CreateDeserialized(Context, ID, Record.readInt()); in ReadDeclRecord()
H A DASTWriterDecl.cpp132 void VisitFriendDecl(FriendDecl *D);
1647 void ASTDeclWriter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp1433 Decl *TemplateDeclInstantiator::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
1451 FriendDecl *FD = FriendDecl::Create( in VisitFriendDecl()
1469 FriendDecl *FD = in VisitFriendDecl()
1470 FriendDecl::Create(SemaRef.Context, Owner, D->getLocation(), in VisitFriendDecl()
4164 FriendDecl *FD = in SubstSpaceshipAsEqualEqual()
4165 FriendDecl::Create(Context, RD, Spaceship->getLocation(), in SubstSpaceshipAsEqualEqual()
H A DSemaDeclCXX.cpp6090 if (auto *FD = dyn_cast<FriendDecl>(D)) { in CheckAbstractClassUsage()
7115 } else if (auto *F = dyn_cast<FriendDecl>(D)) { in CheckCompletedCXXClass()
8861 if (llvm::none_of(RD->friends(), [&](const FriendDecl *F) { in CheckExplicitlyDefaultedComparison()
10476 for (FriendDecl *Friend : RD->friends()) { in findImplicitlyDeclaredEqualityComparisons()
17471 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc, in ActOnTemplatedFriendTag()
17495 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, NameLoc, in ActOnTemplatedFriendTag()
17595 D = FriendDecl::Create(Context, CurContext, TSI->getTypeLoc().getBeginLoc(), in ActOnFriendTypeDecl()
17841 FriendDecl *FrD = FriendDecl::Create(Context, CurContext, in ActOnFriendFunctionDecl()
H A DSemaAccess.cpp563 FriendDecl *FriendD) { in MatchesFriend()
H A DSemaTemplate.cpp2154 FriendDecl *Friend = FriendDecl::Create( in CheckClassTemplate()
8416 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, in ActOnClassTemplateSpecialization()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp748 bool VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h1406 extern const internal::VariadicDynCastAllOfMatcher<Decl, FriendDecl> friendDecl;
3994 AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, TypedefNameDecl,
4035 AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, ValueDecl,
H A DASTMatchersInternal.h156 inline QualType getUnderlyingType(const FriendDecl &Node) {

12