Home
last modified time | relevance | path

Searched refs:getDefinition (Results 1 – 25 of 71) sorted by relevance

123

/external/clang/include/clang/Lex/
DMacroInfo.h392 DefInfo getDefinition();
393 const DefInfo getDefinition() const { in getDefinition() function
394 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
398 if (const DefInfo Def = getDefinition()) in isDefined()
404 return getDefinition().getMacroInfo(); in getMacroInfo()
406 MacroInfo *getMacroInfo() { return getDefinition().getMacroInfo(); } in getMacroInfo()
487 return DefDirective->getPrevious()->getDefinition(); in getPreviousDefinition()
DPreprocessingRecord.h177 if (MacroDefinitionRecord *Def = getDefinition()) in getName()
184 MacroDefinitionRecord *getDefinition() const { in getDefinition() function
/external/clang/lib/CodeGen/
DCodeGenTBAA.cpp178 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
229 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isTBAAPathStruct()
249 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getTBAAStructTypeInfo()
DModuleBuilder.cpp89 if (auto Def = TD->getDefinition()) in GetDeclForMangledName()
DCGDebugInfo.cpp703 const RecordDecl *D = RD->getDefinition(); in getOrCreateRecordFwdDecl()
1539 if (DebugTypeExtRefs && RD->isFromASTFile() && RD->getDefinition()) in shouldOmitDefinition()
1599 const RecordDecl *D = RD->getDefinition(); in CreateTypeDefinition()
1680 if (DebugTypeExtRefs && ID->isFromASTFile() && ID->getDefinition()) in CreateType()
1693 ObjCInterfaceDecl *Def = ID->getDefinition(); in CreateType()
2041 DebugTypeExtRefs && ED->isFromASTFile() && ED->getDefinition(); in CreateEnumType()
2045 if (isImportedFromModule || !ED->getDefinition()) { in CreateEnumType()
2075 ED = ED->getDefinition(); in CreateTypeDefinition()
2196 if (isa<RecordDecl>(D) && !cast<RecordDecl>(D)->getDefinition()) in getParentModuleOrNull()
2346 if (T && (!T->isForwardDecl() || !RD->getDefinition())) in CreateLimitedType()
[all …]
/external/clang/lib/AST/
DDeclObjC.cpp73 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in getMethod()
159 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in findPropertyDecl()
198 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in FindPropertyDeclaration()
266 if (const ObjCInterfaceDecl *def = getDefinition()) in getTypeParamList()
299 if (ObjCInterfaceDecl *superDef = superDecl->getDefinition()) in getSuperClass()
1448 if (const ObjCInterfaceDecl *Def = getDefinition()) { in getImplementation()
1461 getASTContext().setObjCImplementation(getDefinition(), ImplD); in setImplementation()
1792 const ObjCProtocolDecl *Def = getDefinition(); in lookupMethod()
1822 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectPropertiesToImplement()
1838 if (const ObjCProtocolDecl *PDecl = getDefinition()) { in collectInheritedProtocolProperties()
[all …]
DASTImporter.cpp1045 D1 = D1->getDefinition(); in IsStructurallyEquivalent()
1046 D2 = D2->getDefinition(); in IsStructurallyEquivalent()
1922 …if (FromRecord->getDefinition() && FromRecord->isCompleteDefinition() && !ToRecord->getDefinition(… in ImportDefinitionIfNeeded()
1931 if (FromEnum->getDefinition() && !ToEnum->getDefinition()) { in ImportDefinitionIfNeeded()
1985 if (To->getDefinition() || To->isBeingDefined()) { in ImportDefinition()
2103 if (To->getDefinition() || To->isBeingDefined()) { in ImportDefinition()
2539 TagDecl *Definition = D->getDefinition(); in VisitRecordDecl()
2598 if (RecordDecl *FoundDef = FoundRecord->getDefinition()) { in VisitRecordDecl()
3205 if (VarDecl *DDef = D->getDefinition()) { in VisitVarDecl()
3206 if (VarDecl *ExistingDef = MergeWithVar->getDefinition()) { in VisitVarDecl()
[all …]
DRecordLayoutBuilder.cpp2886 if (D->hasExternalLexicalStorage() && !D->getDefinition()) in getASTRecordLayout()
2889 D = D->getDefinition(); in getASTRecordLayout()
2975 assert(RD->getDefinition() && "Cannot get key function for forward decl!"); in getCurrentKeyFunction()
2976 RD = cast<CXXRecordDecl>(RD->getDefinition()); in getCurrentKeyFunction()
3046 if (D->hasExternalLexicalStorage() && !D->getDefinition()) in getObjCLayout()
3048 D = D->getDefinition(); in getObjCLayout()
DDeclBase.cpp966 if (ObjCInterfaceDecl *Def = cast<ObjCInterfaceDecl>(this)->getDefinition()) in getPrimaryContext()
972 if (ObjCProtocolDecl *Def = cast<ObjCProtocolDecl>(this)->getDefinition()) in getPrimaryContext()
990 if (TagDecl *Def = Tag->getDefinition()) in getPrimaryContext()
DDeclCXX.cpp741 if (FieldRec->getDefinition()) { in addedMember()
1269 return CTD->getTemplatedDecl()->getDefinition(); in getTemplateInstantiationPattern()
1278 return CTPSD->getDefinition(); in getTemplateInstantiationPattern()
1287 return RD->getDefinition(); in getTemplateInstantiationPattern()
/external/clang/lib/Lex/
DMacroInfo.cpp176 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition() function in MacroDirective
202 for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { in findDirectiveAtLoc()
/external/clang/include/clang/AST/
DDecl.h1024 VarDecl *getDefinition(ASTContext &);
1025 const VarDecl *getDefinition(ASTContext &C) const { in getDefinition() function
1026 return const_cast<VarDecl*>(this)->getDefinition(C); in getDefinition()
1028 VarDecl *getDefinition() { in getDefinition() function
1029 return getDefinition(getASTContext()); in getDefinition()
1031 const VarDecl *getDefinition() const { in getDefinition() function
1032 return const_cast<VarDecl*>(this)->getDefinition(); in getDefinition()
2901 TagDecl *getDefinition() const;
3065 EnumDecl *getDefinition() const { in getDefinition() function
3066 return cast_or_null<EnumDecl>(TagDecl::getDefinition()); in getDefinition()
[all …]
DDeclObjC.h1127 if (const ObjCInterfaceDecl *Def = getDefinition()) in ivar_begin()
1134 if (const ObjCInterfaceDecl *Def = getDefinition()) in ivar_end()
1196 return getDefinition() == this; in isThisDeclarationADefinition()
1214 ObjCInterfaceDecl *getDefinition() { in getDefinition() function
1221 const ObjCInterfaceDecl *getDefinition() const { in getDefinition() function
1856 ObjCProtocolDecl *getDefinition() { in getDefinition() function
1861 const ObjCProtocolDecl *getDefinition() const { in getDefinition() function
1868 return getDefinition() == this; in isThisDeclarationADefinition()
/external/clang/lib/Serialization/
DASTCommon.cpp219 if (const TagDecl *Def = cast<TagDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
248 = cast<ObjCProtocolDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
/external/clang/lib/StaticAnalyzer/Checkers/
DDynamicTypeChecker.cpp159 return Decl->getDefinition(); in hasDefinition()
DIvarInvalidationChecker.cpp261 containsInvalidationMethod(I->getDefinition(), OutInfo, Partial); in containsInvalidationMethod()
275 containsInvalidationMethod(I->getDefinition(), OutInfo, Partial); in containsInvalidationMethod()
DLLVMConventionsChecker.cpp252 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
/external/clang/lib/Sema/
DSemaDeclObjC.cpp790 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency()
986 if (ObjCInterfaceDecl *Def = PrevIDecl->getDefinition()) { in ActOnStartClassInterface()
1138 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1191 if (!PDecl->hasDefinition() || PDecl->getDefinition()->isHidden()) { in NestedProtocolHasNoDefinition()
1229 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1230 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1357 if (!proto->isThisDeclarationADefinition() && proto->getDefinition()) in actOnObjCTypeArgsOrProtocolQualifiers()
1358 proto = proto->getDefinition(); in actOnObjCTypeArgsOrProtocolQualifiers()
2623 PDecl->getDefinition()) in CheckProtocolMethodDefs()
2624 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
[all …]
DSemaTemplateInstantiate.cpp1930 = cast_or_null<CXXRecordDecl>(Pattern->getDefinition()); in InstantiateClass()
2147 EnumDecl *PatternDef = Pattern->getDefinition(); in InstantiateEnum()
2538 if (!Record->getDefinition()) { in InstantiateClassMembers()
2539 if (!Pattern->getDefinition()) { in InstantiateClassMembers()
2566 Pattern = cast_or_null<CXXRecordDecl>(Record->getDefinition()); in InstantiateClassMembers()
2585 if (Enum->getDefinition()) in InstantiateClassMembers()
2592 if (!Pattern->getDefinition()) in InstantiateClassMembers()
DSemaLookup.cpp704 if (!Class->getDefinition() || Class->isDependentContext()) in CanDeclareSpecialMemberFunction()
771 if (Record->getDefinition() && CanDeclareSpecialMemberFunction(Record)) { in DeclareImplicitMemberFunctionsWithName()
785 if (Record->getDefinition() && Record->needsImplicitDestructor() && in DeclareImplicitMemberFunctionsWithName()
795 if (Record->getDefinition() && CanDeclareSpecialMemberFunction(Record)) { in DeclareImplicitMemberFunctionsWithName()
1944 if (!LookupRec || !LookupRec->getDefinition()) in LookupQualifiedName()
2729 RD = RD->getDefinition(); in LookupSpecialMember()
4847 return VD->getDefinition(); in getDefinitionToImport()
4851 return TD->getDefinition(); in getDefinitionToImport()
4853 return ID->getDefinition(); in getDefinitionToImport()
4855 return PD->getDefinition(); in getDefinitionToImport()
DSema.cpp459 const VarDecl *DeclToCheck = VD->getDefinition(); in ShouldRemoveFromUnused()
596 Complete = MethodsAndNestedClassesComplete(R->getDefinition(), in MethodsAndNestedClassesComplete()
864 const VarDecl *DiagD = cast<VarDecl>(*I)->getDefinition(); in ActOnEndOfTranslationUnit()
/external/clang/tools/libclang/
DCXType.cpp787 RD = RD->getDefinition(); in validateFieldParentType()
820 RD = RD->getDefinition(); in clang_Type_getOffsetOf()
954 RD = RD->getDefinition(); in clang_Type_visitFields()
DCXCursor.h193 const MacroDefinitionRecord *getDefinition() const;
DCIndex.cpp5145 getCursorMacroExpansion(C).getDefinition()) in clang_getCursorReferenced()
5158 if (const ObjCProtocolDecl *Def = Prot->getDefinition()) in clang_getCursorReferenced()
5166 if (const ObjCInterfaceDecl *Def = Class->getDefinition()) in clang_getCursorReferenced()
5291 if (TagDecl *Def = cast<TagDecl>(D)->getDefinition()) in clang_getCursorDefinition()
5310 if (const VarDecl *Def = cast<VarDecl>(D)->getDefinition()) in clang_getCursorDefinition()
5324 ->getDefinition()) in clang_getCursorDefinition()
5332 cast<VarTemplateDecl>(D)->getTemplatedDecl()->getDefinition()) in clang_getCursorDefinition()
5372 if (const ObjCProtocolDecl *Def = cast<ObjCProtocolDecl>(D)->getDefinition()) in clang_getCursorDefinition()
5384 if (const ObjCInterfaceDecl *Def = IFace->getDefinition()) in clang_getCursorDefinition()
5399 if (const ObjCInterfaceDecl *Def = Class->getDefinition()) in clang_getCursorDefinition()
[all …]
/external/v8/tools/gcmole/
Dgcmole.cc1097 record = record->getDefinition(); in IsRawPointerType()
1206 if (object_decl != NULL) object_decl = object_decl->getDefinition(); in HandleTranslationUnit()
1208 if (smi_decl != NULL) smi_decl = smi_decl->getDefinition(); in HandleTranslationUnit()

123