Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DMacroInfo.h405 DefInfo getDefinition();
406 const DefInfo getDefinition() const { in getDefinition() function
407 return const_cast<MacroDirective *>(this)->getDefinition(); in getDefinition()
411 if (const DefInfo Def = getDefinition()) in isDefined()
417 return getDefinition().getMacroInfo(); in getMacroInfo()
419 MacroInfo *getMacroInfo() { return getDefinition().getMacroInfo(); } in getMacroInfo()
504 return DefDirective->getPrevious()->getDefinition(); in getPreviousDefinition()
H A DPreprocessingRecord.h187 if (MacroDefinitionRecord *Def = getDefinition()) in getName()
194 MacroDefinitionRecord *getDefinition() const { in getDefinition() function
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp98 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in getMethod()
185 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in findPropertyDecl()
255 if (const ObjCProtocolDecl *Def = Proto->getDefinition()) in FindPropertyDeclaration()
328 if (const ObjCInterfaceDecl *def = getDefinition()) in getTypeParamList()
362 if (ObjCInterfaceDecl *superDef = superDecl->getDefinition()) in getSuperClass()
577 getCanonicalDecl()->getDefinition() == getDefinition()) in isDesignatedInitializer()
800 Hasher.AddObjCInterfaceDecl(getDefinition()); in getODRHash()
1630 if (const ObjCInterfaceDecl *Def = getDefinition()) { in getImplementation()
1643 getASTContext().setObjCImplementation(getDefinition(), ImplD); in setImplementation()
2003 const ObjCProtocolDecl *Def = getDefinition(); in lookupMethod()
[all …]
H A DDeclBase.cpp592 Definition = ID->getDefinition(); in getExternalSourceSymbolAttr()
594 Definition = PD->getDefinition(); in getExternalSourceSymbolAttr()
596 Definition = TD->getDefinition(); in getExternalSourceSymbolAttr()
1452 if (auto *Def = OID->getDefinition()) in getPrimaryContext()
1458 if (auto *Def = OPD->getDefinition()) in getPrimaryContext()
1475 if (TagDecl *Def = Tag->getDefinition()) in getPrimaryContext()
H A DExternalASTMerger.cpp312 if (!SourceTag->getDefinition()) in CompleteType()
332 if (!SourceInterface->getDefinition()) in CompleteType()
H A DASTImporter.cpp1955 if (FromRecord->getDefinition() && FromRecord->isCompleteDefinition() && in ImportDefinitionIfNeeded()
1956 !ToRecord->getDefinition()) { in ImportDefinitionIfNeeded()
1966 if (FromEnum->getDefinition() && !ToEnum->getDefinition()) { in ImportDefinitionIfNeeded()
2186 assert(From->isCompleteDefinition() && To->getDefinition() == To && in ImportImplicitMethods()
2223 if (To->getDefinition() || To->isBeingDefined()) { in ImportDefinition()
2361 if (To->getDefinition() || To->isBeingDefined()) { in ImportDefinition()
2953 EnumDecl *FoundDef = FoundEnum->getDefinition(); in VisitEnumDecl()
3098 RecordDecl *FoundDef = FoundRecord->getDefinition(); in VisitRecordDecl()
3683 FunctionDecl *Def = D->getDefinition(); in hasReturnTypeDeclaredInside()
4491 VarDecl *FoundDef = FoundVar->getDefinition(); in VisitVarDecl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DInterpreterUtils.cpp56 TD && !TD->getDefinition()) in LookupNamespace()
84 PrimaryWithin = llvm::dyn_cast_or_null<DeclContext>(TD->getDefinition()); in LookupNamed()
H A DCodeCompletion.cpp344 << std::distance(Record->getDefinition()->method_begin(), in completeVisibleDeclsMap()
345 Record->getDefinition()->method_end()) in completeVisibleDeclsMap()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRecordLayout.h252 Base = Base->getDefinition(); in getBaseClassOffset()
262 VBase = VBase->getDefinition(); in getVBaseClassOffset()
H A DDecl.h1274 VarDecl *getDefinition(ASTContext &);
1275 const VarDecl *getDefinition(ASTContext &C) const { in getDefinition() function
1276 return const_cast<VarDecl*>(this)->getDefinition(C); in getDefinition()
1278 VarDecl *getDefinition() { in getDefinition() function
1279 return getDefinition(getASTContext()); in getDefinition()
1281 const VarDecl *getDefinition() const { in getDefinition() function
1282 return const_cast<VarDecl*>(this)->getDefinition(); in getDefinition()
2214 FunctionDecl *getDefinition() { in getDefinition() function
2220 const FunctionDecl *getDefinition() const { in getDefinition() function
2221 return const_cast<FunctionDecl *>(this)->getDefinition(); in getDefinition()
[all …]
H A DDeclObjC.h1453 if (const ObjCInterfaceDecl *Def = getDefinition()) in ivar_begin()
1461 if (const ObjCInterfaceDecl *Def = getDefinition()) in ivar_end()
1523 return getDefinition() == this; in isThisDeclarationADefinition()
1541 ObjCInterfaceDecl *getDefinition() { in getDefinition() function
1548 const ObjCInterfaceDecl *getDefinition() const { in getDefinition() function
2247 ObjCProtocolDecl *getDefinition() { in getDefinition() function
2252 const ObjCProtocolDecl *getDefinition() const { in getDefinition() function
2259 return getDefinition() == this; in isThisDeclarationADefinition()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DMacroInfo.cpp198 MacroDirective::DefInfo MacroDirective::getDefinition() { in getDefinition() function in MacroDirective
223 for (DefInfo Def = getDefinition(); Def; Def = Def.getPreviousDefinition()) { in findDirectiveAtLoc()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h197 FunctionDecl *getDefinition() const { in getDefinition() function
198 return getDecl()->getAsFunction()->getDefinition(); in getDefinition()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp78 if (!(RD = RD->getDefinition())) in visitRecord()
134 if (!(RD = RD->getDefinition())) in shouldSkipDecl()
H A DLLVMConventionsChecker.cpp250 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenTBAA.cpp104 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in isValidBaseType()
346 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in CollectFields()
427 const RecordDecl *RD = TTy->getDecl()->getDefinition(); in getBaseTypeInfoHelper()
H A DModuleBuilder.cpp122 if (auto Def = TD->getDefinition()) in GetDeclForMangledName()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTCommon.cpp314 if (const TagDecl *Def = cast<TagDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
343 = cast<ObjCProtocolDecl>(DC)->getDefinition()) in getDefinitiveDeclContext()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DUsedDeclVisitor.h75 if (Record->getDefinition()) in VisitCXXDeleteExpr()
H A DSemaDeclObjC.cpp866 ->getDefinition() == prevTypeParam->getDeclContext())) { in checkTypeParamListConsistency()
1055 if (ObjCInterfaceDecl *Def = PrevIDecl->getDefinition()) { in ActOnStartClassInterface()
1228 if (ObjCProtocolDecl *Def = PrevDecl? PrevDecl->getDefinition() : nullptr) { in ActOnStartProtocolInterface()
1295 !PDecl->getDefinition()->isUnconditionallyVisible()) { in NestedProtocolHasNoDefinition()
1334 if (!PDecl->isThisDeclarationADefinition() && PDecl->getDefinition()) in FindProtocolDeclaration()
1335 PDecl = PDecl->getDefinition(); in FindProtocolDeclaration()
1472 if (!proto->isThisDeclarationADefinition() && proto->getDefinition()) in actOnObjCTypeArgsOrProtocolQualifiers()
1473 proto = proto->getDefinition(); in actOnObjCTypeArgsOrProtocolQualifiers()
2764 PDecl->getDefinition()) in CheckProtocolMethodDefs()
2765 PDecl = PDecl->getDefinition(); in CheckProtocolMethodDefs()
[all …]
H A DSemaLookup.cpp1000 if (!Class->getDefinition() || Class->isDependentContext()) in CanDeclareSpecialMemberFunction()
1068 if (Record->getDefinition() && CanDeclareSpecialMemberFunction(Record)) { in DeclareImplicitMemberFunctionsWithName()
1082 if (Record->getDefinition() && Record->needsImplicitDestructor() && in DeclareImplicitMemberFunctionsWithName()
1092 if (Record->getDefinition() && CanDeclareSpecialMemberFunction(Record)) { in DeclareImplicitMemberFunctionsWithName()
2465 if (!LookupRec || !LookupRec->getDefinition()) in LookupQualifiedName()
3297 RD = RD->getDefinition(); in LookupSpecialMember()
5531 return VD->getDefinition(); in getDefinitionToImport()
5533 return FD->getDefinition(); in getDefinitionToImport()
5535 return TD->getDefinition(); in getDefinitionToImport()
5537 return ID->getDefinition(); in getDefinitionToImport()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DXCore.cpp382 const RecordDecl *RD = RT->getDecl()->getDefinition(); in appendRecordType()
431 if (const EnumDecl *ED = ET->getDecl()->getDefinition()) { in appendEnumType()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp227 RD = RD->getDefinition(); in VisitDependentNameTypeLoc()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.cpp660 clang::RecordDecl *definition = origin_record.decl->getDefinition(); in importRecordLayoutFromOrigin()
934 if (tag_decl->getDefinition() || tag_decl->isBeingDefined()) in RequireCompleteType()
1242 if (rd->getDefinition()) in MaybeCompleteReturnType()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.cpp295 F = F->getDefinition(); in getAdornedCFG()

1234