Home
last modified time | relevance | path

Searched refs:Friend (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project/clang/include/clang/AST/
H A DDeclFriend.h65 FriendUnion Friend; variable
87 FriendDecl(DeclContext *DC, SourceLocation L, FriendUnion Friend, in FriendDecl()
90 : Decl(Decl::Friend, DC, L), Friend(Friend), FriendLoc(FriendL), in FriendDecl()
98 : Decl(Decl::Friend, Empty), UnsupportedFriend(false), in getNextFriend()
127 return Friend.dyn_cast<TypeSourceInfo*>(); in getFriendTypeNumTemplateParameterLists()
142 return Friend.dyn_cast<NamedDecl *>(); in getFriendLoc()
197 static bool classofKind(Kind K) { return K == Decl::Friend; }
84 FriendDecl(DeclContext * DC,SourceLocation L,FriendUnion Friend,SourceLocation FriendL,ArrayRef<TemplateParameterList * > FriendTypeTPLists) FriendDecl() argument
H A DODRDiagsEmitter.h113 Friend, enumerator
H A DDeclTemplate.h2466 FriendUnion Friend;
2473 FriendUnion Friend, SourceLocation FriendLoc)
2475 Params(Params), Friend(Friend), FriendLoc(FriendLoc) {}
2484 MutableArrayRef<TemplateParameterList *> Params, FriendUnion Friend,
2493 return Friend.dyn_cast<TypeSourceInfo*>();
2500 return Friend.dyn_cast<NamedDecl*>();
/llvm-project/clang/lib/Sema/
H A DSemaAccess.cpp351 DeclContext *Friend) { in MightInstantiateTo()
352 if (Friend == Context) in MightInstantiateTo() argument
355 assert(!Friend->isDependentContext() && in MightInstantiateTo()
361 if (Friend->isFileContext()) in MightInstantiateTo()
370 static bool MightInstantiateTo(Sema &S, CanQualType Context, CanQualType Friend) {
371 if (Friend == Context) in MightInstantiateTo() argument
374 if (!Friend->isDependentType() && !Context->isDependentType()) in MightInstantiateTo()
383 FunctionDecl *Friend) { in MightInstantiateTo()
384 if (Context->getDeclName() != Friend->getDeclName()) in MightInstantiateTo() argument
389 Friend in MightInstantiateTo()
422 MightInstantiateTo(Sema & S,FunctionTemplateDecl * Context,FunctionTemplateDecl * Friend) MightInstantiateTo() argument
430 MatchesFriend(Sema & S,const EffectiveContext & EC,const CXXRecordDecl * Friend) MatchesFriend() argument
446 MatchesFriend(Sema & S,const EffectiveContext & EC,CanQualType Friend) MatchesFriend() argument
461 MatchesFriend(Sema & S,const EffectiveContext & EC,ClassTemplateDecl * Friend) MatchesFriend() argument
514 MatchesFriend(Sema & S,const EffectiveContext & EC,FunctionDecl * Friend) MatchesFriend() argument
533 MatchesFriend(Sema & S,const EffectiveContext & EC,FunctionTemplateDecl * Friend) MatchesFriend() argument
572 NamedDecl *Friend MatchesFriend() local
596 for (auto *Friend : Class->friends()) { GetFriendKind() local
[all...]
H A DSemaTemplate.cpp1661 const FunctionDecl *Friend = nullptr; in CheckIfContainingRecord()
1665 // Friend, likely because it was referred to without its template arguments. in CheckNonTypeTemplateParmDecl()
1671 for (const DeclContext *DC = Friend->getLexicalDeclContext(); in CheckNonTypeTemplateParmDecl()
1691 const FunctionDecl *Friend, in TransformTemplateTypeParmType()
1693 : inherited(SemaRef), Friend(Friend), TemplateDepth(TemplateDepth) {} in TransformTemplateTypeParmType()
1737 const FunctionDecl *Friend, unsigned TemplateDepth, in ConstraintExpressionDependsOnEnclosingTemplate()
1739 assert(Friend->getFriendObjectKind() && "Only works on a friend");
1740 ConstraintRefersToContainingTemplateChecker Checker(*this, Friend, in ActOnTemplateParameterList()
1832 (SS.isEmpty() && TUK == TagUseKind::Friend) in CheckClassTemplate()
1648 const FunctionDecl *Friend = nullptr; global() member in __anon1de8de040711::ConstraintRefersToContainingTemplateChecker
1681 ConstraintRefersToContainingTemplateChecker(Sema & SemaRef,const FunctionDecl * Friend,unsigned TemplateDepth) ConstraintRefersToContainingTemplateChecker() argument
1730 ConstraintExpressionDependsOnEnclosingTemplate(const FunctionDecl * Friend,unsigned TemplateDepth,const Expr * Constraint) ConstraintExpressionDependsOnEnclosingTemplate() argument
2153 FriendDecl *Friend = FriendDecl::Create( CheckClassTemplate() local
9628 FriendDecl *Friend = FriendDecl::Create(Context, CurContext, ActOnClassTemplateSpecialization() local
[all...]
/llvm-project/clang/test/CXX/special/class.ctor/
H A Dp5-0x.cpp11 class Friend { class
12 Friend() = default; ~Friend() = default;
124 struct NotDeleted6c { Friend a; };
146 struct NotDeleted7i : Friend {};
148 struct NotDeleted7j : virtual Friend {};
150 struct NotDeleted7k { Friend a; };
/llvm-project/lldb/test/Shell/SymbolFile/PDB/Inputs/
H A DClassLayoutTest.cpp70 class Friend { class
75 friend Friend;
86 int f(Friend c) { return c.f(); } in f()
101 friend class Friend;
/llvm-project/clang/lib/AST/
H A DDeclFriend.cpp1 //===- DeclFriend.cpp - C++ Friend Declaration AST Node Implementation ----===//
35 FriendUnion Friend, SourceLocation FriendL, in Create()
39 if (const auto *D = dyn_cast<NamedDecl *>(Friend)) { in Create()
58 FriendDecl(DC, L, Friend, FriendL, EllipsisLoc, FriendTypeTPLists); in Create()
36 Create(ASTContext & C,DeclContext * DC,SourceLocation L,FriendUnion Friend,SourceLocation FriendL,ArrayRef<TemplateParameterList * > FriendTypeTPLists) Create() argument
H A DODRDiagsEmitter.cpp614 case Decl::Friend: in FindTypeDiffs()
615 return Friend; in FindTypeDiffs()
1281 case Friend: { in diagnoseMismatch()
1618 case Friend: in diagnoseMismatch()
2060 case Friend: in diagnoseMismatch()
2189 case Friend: in diagnoseMismatch()
/llvm-project/clang/test/CXX/dcl.decl/dcl.init/
H A Dp14-0x.cpp23 class Friend { class
25 Friend(int);
37 Friend f = 42;
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DCrtpConstructorAccessibilityCheck.cpp25 return llvm::any_of(CRTP->friends(), [&](const FriendDecl *Friend) { in isDerivedParameterBefriended() argument
26 const TypeSourceInfo *const FriendType = Friend->getFriendType(); in isDerivedParameterBefriended()
40 return llvm::any_of(CRTP->friends(), [&](const FriendDecl *Friend) { in isDerivedClassBefriended() argument
41 const TypeSourceInfo *const FriendType = Friend->getFriendType(); in isDerivedClassBefriended()
/llvm-project/clang/test/SemaCXX/
H A DGH83461.cpp31 friend struct Friend;
45 friend struct Friend;
H A Danonymous-struct.cpp82 } Friend; // expected-note {{type is given name 'Friend' for linkage purposes by this typedef decla… typedef
/llvm-project/clang/test/CXX/dcl.dcl/basic.namespace/namespace.udecl/
H A Dp18.cpp20 friend void Friend();
46 void Friend() { in Friend() function
/llvm-project/lldb/test/Shell/SymbolFile/PDB/
H A Dclass-layout.test72 FRIEND: name = "Friend", size = 1, decl = ClassLayoutTest.cpp:70
73 FRIEND-SAME: class Friend {
90 CLASS: int f(MemberTest::Friend);
/llvm-project/llvm/include/llvm/DebugInfo/PDB/
H A DPDBSymbolTypeFriend.h20 DECLARE_PDB_SYMBOL_CONCRETE_TYPE(PDB_SymType::Friend)
H A DPDBTypes.h263 Friend, enumerator
/llvm-project/clang/test/CXX/module/module.interface/
H A Dp6.cpp96 namespace Friend { namespace
/llvm-project/clang-tools-extra/unittests/clang-include-fixer/find-all-symbols/
H A DFindAllSymbolsTests.cpp558 friend void Friend();
568 SymbolInfo("Friend", SymbolInfo::SymbolKind::Function, HeaderName, {});
/llvm-project/clang/test/Coverage/
H A Dcxx-language-features.inc29 // Friend declarations
/llvm-project/llvm/unittests/DebugInfo/PDB/
H A DPDBApiTest.cpp432 InsertItemWithTag(PDB_SymType::Friend); in SetUp()
494 VerifyDyncast<PDBSymbolTypeFriend>(PDB_SymType::Friend); in TEST_F()
/llvm-project/llvm/lib/DebugInfo/PDB/
H A DPDBSymbol.cpp84 FACTORY_SYMTAG_CASE(Friend, PDBSymbolTypeFriend) in createSymbol()
/llvm-project/clang/include/clang/Basic/
H A DDeclNodes.td100 def Friend : DeclNode<Decl>;
/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp439 case Decl::Friend: in isRedeclarableDeclKind()
475 // Friend declarations in dependent contexts aren't anonymous in the usual in needsAnonymousDeclarationNumber()
/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h284 Friend = 0x03, enumerator

12