Home
last modified time | relevance | path

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

1234

/src/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
/src/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()
/src/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()
/src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp117 if (!RecordDecl->getDefinition()) { in handleCXXRecordDecl()
121 RecordDecl = RecordDecl->getDefinition(); in handleCXXRecordDecl()
157 const auto* RecordDecl = RD->getDefinition(); in addUSRsOfCtorDtors()
/src/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()
/src/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()
/src/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h197 FunctionDecl *getDefinition() const { in getDefinition() function
198 return getDecl()->getAsFunction()->getDefinition(); in getDefinition()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp277 const RecordDecl *RD = R->getValueType()->getAsRecordDecl()->getDefinition(); in isNonUnionUninit()
517 return M->getDefinition()->getBody(); in getMethodBody()
530 Parent = Parent->getDefinition(); in hasUnguardedAccess()
/src/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 DDynamicTypeChecker.cpp144 return Decl->getDefinition(); in hasDefinition()
H A DIvarInvalidationChecker.cpp258 containsInvalidationMethod(I->getDefinition(), OutInfo, Partial); in containsInvalidationMethod()
272 containsInvalidationMethod(I->getDefinition(), OutInfo, Partial); in containsInvalidationMethod()
H A DLLVMConventionsChecker.cpp250 const RecordDecl *RD = RT->getDecl()->getDefinition(); in Visit()
/src/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()
/src/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()
/src/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 …]
/src/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()
/src/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp98 if (FunctionDecl *Def = Ctor->getDefinition()) in VisitCXXConstructExpr()

1234