/external/clang/unittests/AST/ |
D | SourceLocationTest.cpp | 310 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/ |
D | DeclFriend.cpp | 20 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()
|
D | DeclPrinter.cpp | 65 void VisitFriendDecl(FriendDecl *D); 661 void DeclPrinter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
|
/external/llvm-project/clang/lib/AST/ |
D | DeclFriend.cpp | 27 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()
|
D | ASTImporterLookupTable.cpp | 48 bool VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
|
D | ASTImporter.cpp | 508 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 …]
|
D | DeclPrinter.cpp | 69 void VisitFriendDecl(FriendDecl *D); 787 void DeclPrinter::VisitFriendDecl(FriendDecl *D) { in VisitFriendDecl()
|
/external/clang/include/clang/AST/ |
D | DeclFriend.h | 40 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 …]
|
D | DeclCXX.h | 44 class FriendDecl; variable 640 FriendDecl *getFirstFriend() const; 796 void pushFriendDecl(FriendDecl *FD);
|
/external/llvm-project/clang/unittests/AST/ |
D | SourceLocationTest.cpp | 455 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 …]
|
D | ASTImporterTest.cpp | 29 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/ |
D | DeclFriend.h | 53 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 …]
|
D | TextNodeDumper.h | 359 void VisitFriendDecl(const FriendDecl *D);
|
D | JSONNodeDumper.h | 250 void VisitFriendDecl(const FriendDecl *FD);
|
D | ASTNodeTraverser.h | 606 void VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
|
D | DeclCXX.h | 68 class FriendDecl; variable 473 FriendDecl *getFirstFriend() const; 668 void pushFriendDecl(FriendDecl *FD);
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseTrailingReturnTypeCheck.h | 59 const FriendDecl *Fr, const ASTContext &Ctx,
|
D | UseTrailingReturnTypeCheck.cpp | 356 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/ |
D | ASTCommon.h | 99 if (auto *FD = dyn_cast<FriendDecl>(LexicalD)) in numberAnonymousDeclsWithin()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTCommon.h | 101 if (auto *FD = dyn_cast<FriendDecl>(LexicalD)) in numberAnonymousDeclsWithin()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | RedundantDeclarationCheck.cpp | 59 if (Parent.get<FriendDecl>()) in check()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | ForwardDeclarationNamespaceCheck.cpp | 63 const auto *Decl = Result.Nodes.getNodeAs<FriendDecl>("friend_decl"); in check()
|
/external/llvm-project/clang/tools/libclang/ |
D | CursorVisitor.h | 243 bool VisitFriendDecl(FriendDecl *D);
|
/external/clang/lib/Index/ |
D | IndexDecl.cpp | 389 bool VisitFriendDecl(const FriendDecl *D) { in VisitFriendDecl()
|
/external/llvm-project/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 1373 extern const internal::VariadicDynCastAllOfMatcher<Decl, FriendDecl> friendDecl; 3622 AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, TypedefNameDecl, 3660 AST_POLYMORPHIC_SUPPORTED_TYPES(Expr, FriendDecl, ValueDecl,
|