Home
last modified time | relevance | path

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

123

/external/clang/unittests/AST/
DSourceLocationTest.cpp310 TEST(FriendDecl, FriendNonMemberFunctionLocation) { in TEST() argument
311 LocationVerifier<FriendDecl> Verifier; in TEST()
319 TEST(FriendDecl, FriendNonMemberFunctionRange) { in TEST() argument
320 RangeVerifier<FriendDecl> Verifier; in TEST()
328 TEST(FriendDecl, FriendNonMemberFunctionDefinitionLocation) { in TEST() argument
329 LocationVerifier<FriendDecl> Verifier; in TEST()
337 TEST(FriendDecl, FriendNonMemberFunctionDefinitionRange) { in TEST() argument
338 RangeVerifier<FriendDecl> Verifier; in TEST()
346 TEST(FriendDecl, FriendElaboratedTypeLocation) { in TEST() argument
347 LocationVerifier<FriendDecl> Verifier; in TEST()
[all …]
/external/clang/lib/AST/
DDeclFriend.cpp20 void FriendDecl::anchor() { } in anchor()
22 FriendDecl *FriendDecl::getNextFriendSlowCase() { in getNextFriendSlowCase()
23 return cast_or_null<FriendDecl>( in getNextFriendSlowCase()
27 FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, in Create()
50 FriendDecl::additionalSizeToAlloc<TemplateParameterList *>( in Create()
52 FriendDecl *FD = new (C, DC, Extra) FriendDecl(DC, L, Friend, FriendL, in Create()
58 FriendDecl *FriendDecl::CreateDeserialized(ASTContext &C, unsigned ID, in CreateDeserialized()
62 return new (C, ID, Extra) FriendDecl(EmptyShell(), FriendTypeNumTPLists); in CreateDeserialized()
65 FriendDecl *CXXRecordDecl::getFirstFriend() const { in getFirstFriend()
68 return First ? cast<FriendDecl>(First) : nullptr; in getFirstFriend()
DDeclPrinter.cpp65 void VisitFriendDecl(FriendDecl *D);
661 void DeclPrinter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
/external/llvm-project/clang/lib/AST/
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, unsigned 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()
DASTImporterLookupTable.cpp48 bool VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
DASTImporter.cpp508 ExpectedDecl VisitFriendDecl(FriendDecl *D);
1833 if (isa<FieldDecl>(D) || isa<IndirectFieldDecl>(D) || isa<FriendDecl>(D)) { in ImportDeclContext()
3698 const FriendDecl *FD, in getFriendCountAndPosition()
3699 llvm::function_ref<T(const FriendDecl *)> GetCanTypeOrDecl) { in getFriendCountAndPosition()
3706 for (const FriendDecl *FoundFriend : RD->friends()) { in getFriendCountAndPosition()
3721 static FriendCountAndPosition getFriendCountAndPosition(const FriendDecl *FD) { in getFriendCountAndPosition()
3723 return getFriendCountAndPosition<QualType>(FD, [](const FriendDecl *F) { in getFriendCountAndPosition()
3729 return getFriendCountAndPosition<Decl *>(FD, [](const FriendDecl *F) { in getFriendCountAndPosition()
3736 ExpectedDecl ASTNodeImporter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
3746 FriendDecl *ImportedFriend = RD->getFirstFriend(); in VisitFriendDecl()
[all …]
DDeclPrinter.cpp69 void VisitFriendDecl(FriendDecl *D);
787 void DeclPrinter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
/external/clang/include/clang/AST/
DDeclFriend.h40 class FriendDecl final
42 private llvm::TrailingObjects<FriendDecl, TemplateParameterList *> {
70 FriendDecl(DeclContext *DC, SourceLocation L, FriendUnion Friend, in FriendDecl() function
83 FriendDecl(EmptyShell Empty, unsigned NumFriendTypeTPLists) in FriendDecl() function
87 FriendDecl *getNextFriend() { in getNextFriend()
89 return cast_or_null<FriendDecl>(NextFriend.get(nullptr)); in getNextFriend()
92 FriendDecl *getNextFriendSlowCase();
95 static FriendDecl *Create(ASTContext &C, DeclContext *DC,
100 static FriendDecl *CreateDeserialized(ASTContext &C, unsigned ID,
174 FriendDecl *Ptr;
[all …]
DDeclCXX.h44 class FriendDecl; variable
640 FriendDecl *getFirstFriend() const;
796 void pushFriendDecl(FriendDecl *FD);
/external/llvm-project/clang/unittests/AST/
DSourceLocationTest.cpp455 TEST(FriendDecl, FriendNonMemberFunctionLocation) { in TEST() argument
456 LocationVerifier<FriendDecl> Verifier; in TEST()
464 TEST(FriendDecl, FriendNonMemberFunctionRange) { in TEST() argument
465 RangeVerifier<FriendDecl> Verifier; in TEST()
473 TEST(FriendDecl, FriendNonMemberFunctionDefinitionLocation) { in TEST() argument
474 LocationVerifier<FriendDecl> Verifier; in TEST()
482 TEST(FriendDecl, FriendNonMemberFunctionDefinitionRange) { in TEST() argument
483 RangeVerifier<FriendDecl> Verifier; in TEST()
491 TEST(FriendDecl, FriendElaboratedTypeLocation) { in TEST() argument
492 LocationVerifier<FriendDecl> Verifier; in TEST()
[all …]
DASTImporterTest.cpp29 static const RecordDecl *getRecordDeclOfFriend(FriendDecl *FD) { in getRecordDeclOfFriend()
2418 auto *InClassFD = cast<FunctionDecl>(FirstDeclMatcher<FriendDecl>() in TEST_P()
2661 auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTU, friendDecl()); in TEST_P()
2674 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl()); in TEST_P()
3624 auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTu, friendDecl()); in TEST_P()
3643 auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
3678 auto *Friend = FirstDeclMatcher<FriendDecl>().match(ToD, friendDecl()); in TEST_P()
3827 auto *Friend = FirstDeclMatcher<FriendDecl>().match(FromTU0, friendDecl()); in TEST_P()
3855 auto *ToFriend1 = FirstDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
3856 auto *ToFriend2 = LastDeclMatcher<FriendDecl>().match(ToTu, friendDecl()); in TEST_P()
[all …]
/external/llvm-project/clang/include/clang/AST/
DDeclFriend.h53 class FriendDecl final
55 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 *Create(ASTContext &C, DeclContext *DC,
116 static FriendDecl *CreateDeserialized(ASTContext &C, unsigned ID,
190 FriendDecl *Ptr;
[all …]
DTextNodeDumper.h359 void VisitFriendDecl(const FriendDecl *D);
DJSONNodeDumper.h250 void VisitFriendDecl(const FriendDecl *FD);
DASTNodeTraverser.h606 void VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
DDeclCXX.h68 class FriendDecl; variable
473 FriendDecl *getFirstFriend() const;
668 void pushFriendDecl(FriendDecl *FD);
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DUseTrailingReturnTypeCheck.h59 const FriendDecl *Fr, const ASTContext &Ctx,
DUseTrailingReturnTypeCheck.cpp356 const FunctionDecl &F, const FriendDecl *Fr, const ASTContext &Ctx, in keepSpecifiers()
426 const auto *Fr = Result.Nodes.getNodeAs<FriendDecl>("Friend"); in check()
/external/clang/lib/Serialization/
DASTCommon.h99 if (auto *FD = dyn_cast<FriendDecl>(LexicalD)) in numberAnonymousDeclsWithin()
/external/llvm-project/clang/lib/Serialization/
DASTCommon.h101 if (auto *FD = dyn_cast<FriendDecl>(LexicalD)) in numberAnonymousDeclsWithin()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantDeclarationCheck.cpp59 if (Parent.get<FriendDecl>()) in check()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DForwardDeclarationNamespaceCheck.cpp63 const auto *Decl = Result.Nodes.getNodeAs<FriendDecl>("friend_decl"); in check()
/external/llvm-project/clang/tools/libclang/
DCursorVisitor.h243 bool VisitFriendDecl(FriendDecl *D);
/external/clang/lib/Index/
DIndexDecl.cpp389 bool VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h1373 extern const internal::VariadicDynCastAllOfMatcher<Decl, FriendDecl> friendDecl;
3622 AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, TypedefNameDecl,
3660 AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, ValueDecl,

123