/external/llvm-project/clang/tools/libclang/ |
D | CXIndexDataConsumer.h | 65 struct DeclInfo : public CXIdxDeclInfo { struct 86 DeclInfo(bool isRedeclaration, bool isDefinition, bool isContainer) in DeclInfo() argument 96 DeclInfo(DInfoKind K, in DeclInfo() function 109 struct ObjCContainerDeclInfo : public DeclInfo { 115 : DeclInfo(Info_ObjCContainer, isRedeclaration, in ObjCContainerDeclInfo() 123 : DeclInfo(K, isRedeclaration, /*isDefinition=*/!isForwardRef, in ObjCContainerDeclInfo() 128 static bool classof(const DeclInfo *D) { in classof() 153 static bool classof(const DeclInfo *D) { in classof() 167 static bool classof(const DeclInfo *D) { in classof() 182 static bool classof(const DeclInfo *D) { in classof() [all …]
|
D | Indexing.cpp | 729 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCContainerDeclInfo() 742 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCInterfaceDeclInfo() 755 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCCategoryDeclInfo() 768 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCProtocolRefListInfo() 789 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCPropertyDeclInfo() 814 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getCXXClassDeclInfo()
|
D | CXIndexDataConsumer.cpp | 543 DeclInfo &DInfo, in handleDecl() 617 DeclInfo DInfo(!D->isFirstDecl(), isDef, isContainer); in handleFunction() 624 DeclInfo DInfo(!D->isFirstDecl(), D->isThisDeclarationADefinition(), in handleVar() 630 DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true, in handleField() 636 DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true, in handleEnumerator() 645 DeclInfo DInfo(!D->isFirstDecl(), D->isThisDeclarationADefinition(), in handleTagDecl() 651 DeclInfo DInfo(!D->isFirstDecl(), /*isDefinition=*/true, in handleTypedefName() 813 DeclInfo DInfo(!D->isCanonicalDecl(), isDef, isContainer); in handleObjCMethod() 830 DeclInfo DInfo(/*isRedeclaration=*/true, /*isDefinition=*/true, in handleSynthesizedObjCMethod() 861 DeclInfo DInfo(/*isRedeclaration=*/!D->isOriginalNamespace(), in handleNamespace() [all …]
|
/external/clang/tools/libclang/ |
D | CXIndexDataConsumer.h | 67 struct DeclInfo : public CXIdxDeclInfo { struct 88 DeclInfo(bool isRedeclaration, bool isDefinition, bool isContainer) in DeclInfo() function 98 DeclInfo(DInfoKind K, in DeclInfo() function 111 struct ObjCContainerDeclInfo : public DeclInfo { 117 : DeclInfo(Info_ObjCContainer, isRedeclaration, in ObjCContainerDeclInfo() 125 : DeclInfo(K, isRedeclaration, /*isDefinition=*/!isForwardRef, in ObjCContainerDeclInfo() 130 static bool classof(const DeclInfo *D) { in classof() 155 static bool classof(const DeclInfo *D) { in classof() 169 static bool classof(const DeclInfo *D) { in classof() 184 static bool classof(const DeclInfo *D) { in classof() [all …]
|
D | Indexing.cpp | 701 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCContainerDeclInfo() 714 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCInterfaceDeclInfo() 727 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCCategoryDeclInfo() 740 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCProtocolRefListInfo() 761 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getObjCPropertyDeclInfo() 786 const DeclInfo *DI = static_cast<const DeclInfo *>(DInfo); in clang_index_getCXXClassDeclInfo()
|
D | CXIndexDataConsumer.cpp | 531 DeclInfo &DInfo, in handleDecl() 605 DeclInfo DInfo(!D->isFirstDecl(), isDef, isContainer); in handleFunction() 612 DeclInfo DInfo(!D->isFirstDecl(), D->isThisDeclarationADefinition(), in handleVar() 618 DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true, in handleField() 624 DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true, in handleMSProperty() 630 DeclInfo DInfo(/*isRedeclaration=*/false, /*isDefinition=*/true, in handleEnumerator() 639 DeclInfo DInfo(!D->isFirstDecl(), D->isThisDeclarationADefinition(), in handleTagDecl() 645 DeclInfo DInfo(!D->isFirstDecl(), /*isDefinition=*/true, in handleTypedefName() 806 DeclInfo DInfo(!D->isCanonicalDecl(), isDef, isContainer); in handleObjCMethod() 823 DeclInfo DInfo(/*isRedeclaration=*/true, /*isDefinition=*/true, in handleSynthesizedObjCMethod() [all …]
|
/external/llvm-project/clang/lib/Index/ |
D | CommentToXML.cpp | 563 void formatTextOfDeclaration(const DeclInfo *DI, 576 void getSourceTextOfDeclaration(const DeclInfo *ThisDecl, in getSourceTextOfDeclaration() 590 const DeclInfo *DI, SmallString<128> &Declaration) { in formatTextOfDeclaration() 822 const DeclInfo *DI = C->getDeclInfo(); in visitFullComment() 826 case DeclInfo::OtherKind: in visitFullComment() 830 case DeclInfo::FunctionKind: in visitFullComment() 834 case DeclInfo::NotTemplate: in visitFullComment() 836 case DeclInfo::Template: in visitFullComment() 839 case DeclInfo::TemplateSpecialization: in visitFullComment() 842 case DeclInfo::TemplatePartialSpecialization: in visitFullComment() [all …]
|
/external/llvm-project/clang/include/clang/AST/ |
D | LocInfoType.h | 35 TypeSourceInfo *DeclInfo; variable 38 : Type((TypeClass)LocInfo, ty, ty->getDependence()), DeclInfo(TInfo) { in LocInfoType() 45 TypeSourceInfo *getTypeSourceInfo() const { return DeclInfo; } in getTypeSourceInfo()
|
D | Comment.h | 980 struct DeclInfo { struct 1093 DeclInfo *ThisDeclInfo; argument 1096 FullComment(ArrayRef<BlockContentComment *> Blocks, DeclInfo *D) : in FullComment() 1123 const DeclInfo *getDeclInfo() const LLVM_READONLY { in getDeclInfo()
|
D | CommentSema.h | 49 DeclInfo *ThisDeclInfo;
|
D | Decl.h | 695 llvm::PointerUnion<TypeSourceInfo *, ExtInfo *> DeclInfo; variable 701 bool hasExtInfo() const { return DeclInfo.is<ExtInfo*>(); } in hasExtInfo() 702 ExtInfo *getExtInfo() { return DeclInfo.get<ExtInfo*>(); } in getExtInfo() 703 const ExtInfo *getExtInfo() const { return DeclInfo.get<ExtInfo*>(); } in getExtInfo() 709 : ValueDecl(DK, DC, L, N, T), DeclInfo(TInfo), InnerLocStart(StartL) {} in DeclaratorDecl() 718 : DeclInfo.get<TypeSourceInfo*>(); in getTypeSourceInfo() 725 DeclInfo = TI; in setTypeSourceInfo()
|
/external/clang/include/clang/AST/ |
D | LocInfoType.h | 36 TypeSourceInfo *DeclInfo; variable 42 DeclInfo(TInfo) { in LocInfoType() 49 TypeSourceInfo *getTypeSourceInfo() const { return DeclInfo; } in getTypeSourceInfo()
|
D | Comment.h | 986 struct DeclInfo { struct 1099 DeclInfo *ThisDeclInfo; argument 1102 FullComment(ArrayRef<BlockContentComment *> Blocks, DeclInfo *D) : in FullComment() 1129 const DeclInfo *getDeclInfo() const LLVM_READONLY { in getDeclInfo()
|
D | CommentSema.h | 50 DeclInfo *ThisDeclInfo;
|
D | Decl.h | 653 llvm::PointerUnion<TypeSourceInfo*, ExtInfo*> DeclInfo; variable 659 bool hasExtInfo() const { return DeclInfo.is<ExtInfo*>(); } in hasExtInfo() 660 ExtInfo *getExtInfo() { return DeclInfo.get<ExtInfo*>(); } in getExtInfo() 661 const ExtInfo *getExtInfo() const { return DeclInfo.get<ExtInfo*>(); } in getExtInfo() 667 : ValueDecl(DK, DC, L, N, T), DeclInfo(TInfo), InnerLocStart(StartL) { in DeclaratorDecl() 674 : DeclInfo.get<TypeSourceInfo*>(); in getTypeSourceInfo() 680 DeclInfo = TI; in setTypeSourceInfo()
|
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/ |
D | ExtractFunction.cpp | 530 auto *DeclInfo = Info.getDeclInfoFor(D); in captureZoneInfo() local 532 if (!DeclInfo) in captureZoneInfo() 533 DeclInfo = Info.createDeclInfo(D, ZoneRelative::OutsideFunc); in captureZoneInfo() 534 DeclInfo->markOccurence(CurrentLocation); in captureZoneInfo() 582 const auto &DeclInfo = KeyVal.second; in createParameters() local 586 if (DeclInfo.DeclaredIn == ZoneRelative::Inside && in createParameters() 587 DeclInfo.IsReferencedInPostZone) in createParameters() 589 if (!DeclInfo.IsReferencedInZone) in createParameters() 591 if (DeclInfo.DeclaredIn == ZoneRelative::Inside || in createParameters() 592 DeclInfo.DeclaredIn == ZoneRelative::OutsideFunc) in createParameters() [all …]
|
/external/clang/lib/Index/ |
D | CommentToXML.cpp | 566 void formatTextOfDeclaration(const DeclInfo *DI, 581 void getSourceTextOfDeclaration(const DeclInfo *ThisDecl, in getSourceTextOfDeclaration() 594 const DeclInfo *DI, SmallString<128> &Declaration) { in formatTextOfDeclaration() 825 const DeclInfo *DI = C->getDeclInfo(); in visitFullComment() 829 case DeclInfo::OtherKind: in visitFullComment() 833 case DeclInfo::FunctionKind: in visitFullComment() 837 case DeclInfo::NotTemplate: in visitFullComment() 839 case DeclInfo::Template: in visitFullComment() 842 case DeclInfo::TemplateSpecialization: in visitFullComment() 845 case DeclInfo::TemplatePartialSpecialization: in visitFullComment() [all …]
|
/external/llvm-project/clang/lib/AST/ |
D | Comment.cpp | 32 static_assert(std::is_trivially_destructible<DeclInfo>::value, 204 void DeclInfo::fill() { in fill()
|
D | CommentSema.cpp | 40 ThisDeclInfo = new (Allocator) DeclInfo; in setDecl() 826 return ThisDeclInfo->getKind() == DeclInfo::FunctionKind; in isFunctionDecl() 867 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl() 881 if (ThisDeclInfo->getKind() != DeclInfo::VariableKind || in isFunctionOrBlockPointerVarLikeDecl() 919 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
|
D | Decl.cpp | 1847 auto *savedTInfo = DeclInfo.get<TypeSourceInfo*>(); in setQualifierInfo() 1849 DeclInfo = new (getASTContext()) ExtInfo; in setQualifierInfo() 1866 auto *savedTInfo = DeclInfo.get<TypeSourceInfo*>(); in setTrailingRequiresClause() 1868 DeclInfo = new (getASTContext()) ExtInfo; in setTrailingRequiresClause() 1882 auto *savedTInfo = DeclInfo.get<TypeSourceInfo*>(); in setTemplateParameterListsInfo() 1884 DeclInfo = new (getASTContext()) ExtInfo; in setTemplateParameterListsInfo()
|
/external/clang/lib/AST/ |
D | CommentSema.cpp | 40 ThisDeclInfo = new (Allocator) DeclInfo; in setDecl() 805 return ThisDeclInfo->getKind() == DeclInfo::FunctionKind; in isFunctionDecl() 838 if (ThisDeclInfo->getKind() == DeclInfo::VariableKind) { in isFunctionPointerVarDecl() 860 return ThisDeclInfo->getTemplateKind() != DeclInfo::NotTemplate; in isTemplateOrSpecialization()
|
D | Comment.cpp | 129 void DeclInfo::fill() { in fill()
|
D | Decl.cpp | 1654 auto *savedTInfo = DeclInfo.get<TypeSourceInfo*>(); in setQualifierInfo() 1656 DeclInfo = new (getASTContext()) ExtInfo; in setQualifierInfo() 1671 DeclInfo = savedTInfo; in setQualifierInfo() 1685 auto *savedTInfo = DeclInfo.get<TypeSourceInfo*>(); in setTemplateParameterListsInfo() 1687 DeclInfo = new (getASTContext()) ExtInfo; in setTemplateParameterListsInfo()
|
D | ASTContext.cpp | 423 comments::DeclInfo *ThisDeclInfo = new (*this) comments::DeclInfo; in cloneFullComment()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 459 if (DD->DeclInfo) { in Visit() 461 DD->DeclInfo.get<DeclaratorDecl::ExtInfo *>(); in Visit() 466 DD->DeclInfo = GetTypeSourceInfo(Record, Idx); in Visit() 750 DD->DeclInfo = Info; in VisitDeclaratorDecl()
|