Home
last modified time | relevance | path

Searched refs:Ivar (Results 1 – 25 of 38) sorted by relevance

12

/external/clang/test/SemaObjCXX/
Divar-lookup.mm3 @interface Ivar interface
8 A *Ivar; field
15 int *ip = [Ivar method]; // Okay; calls A's method on the instance variable Ivar.
16 // Note that Objective-C calls Ivar's method.
/external/clang/lib/CodeGen/
DCGObjCRuntime.cpp32 const ObjCIvarDecl *Ivar) { in LookupFieldBitOffset() argument
33 const ObjCInterfaceDecl *Container = Ivar->getContainingInterface(); in LookupFieldBitOffset()
56 if (Ivar == IVD) in LookupFieldBitOffset()
67 const ObjCIvarDecl *Ivar) { in ComputeIvarBaseOffset() argument
68 return LookupFieldBitOffset(CGM, OID, nullptr, Ivar) / in ComputeIvarBaseOffset()
74 const ObjCIvarDecl *Ivar) { in ComputeIvarBaseOffset() argument
75 return LookupFieldBitOffset(CGM, OID->getClassInterface(), OID, Ivar) / in ComputeIvarBaseOffset()
82 const ObjCIvarDecl *Ivar) { in ComputeBitfieldBitOffset() argument
83 return LookupFieldBitOffset(CGM, ID, ID->getImplementation(), Ivar); in ComputeBitfieldBitOffset()
89 const ObjCIvarDecl *Ivar, in EmitValueForIvarAtOffset() argument
[all …]
DCGObjCRuntime.h80 const ObjCIvarDecl *Ivar);
83 const ObjCIvarDecl *Ivar);
88 const ObjCIvarDecl *Ivar,
265 const ObjCIvarDecl *Ivar,
269 const ObjCIvarDecl *Ivar) = 0;
303 const ObjCIvarDecl *Ivar);
DCGValue.h184 bool Ivar:1; variable
233 this->Ivar = this->ObjIsArray = this->NonGC = this->GlobalObjCRef = false;
264 bool isObjCIvar() const { return Ivar; } in isObjCIvar()
265 void setObjCIvar(bool Value) { Ivar = Value; } in setObjCIvar()
DCGObjCMac.cpp1250 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
1254 const ObjCIvarDecl *Ivar) override;
1328 const ObjCIvarDecl *Ivar,
1389 const ObjCIvarDecl *Ivar);
1545 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
1549 const ObjCIvarDecl *Ivar) override;
3469 llvm::Constant *Ivar[] = { in EmitIvarList() local
3475 Ivars.push_back(llvm::ConstantStruct::get(ObjCTypes.IvarTy, Ivar)); in EmitIvarList()
4422 const ObjCIvarDecl *Ivar, in EmitObjCValueForIvar() argument
4426 return EmitValueForIvarAtOffset(CGF, ID, BaseValue, Ivar, CVRQualifiers, in EmitObjCValueForIvar()
[all …]
DCGObjCGNU.cpp450 const ObjCIvarDecl *Ivar);
553 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
557 const ObjCIvarDecl *Ivar) override;
2775 const ObjCIvarDecl *Ivar) { in ObjCIvarOffsetVariable() argument
2777 + '.' + Ivar->getNameAsString(); in ObjCIvarOffsetVariable()
2795 Offset = ComputeIvarBaseOffset(CGM, ID, Ivar); in ObjCIvarOffsetVariable()
2822 const ObjCIvarDecl *Ivar, in EmitObjCValueForIvar() argument
2826 return EmitValueForIvarAtOffset(CGF, ID, BaseValue, Ivar, CVRQualifiers, in EmitObjCValueForIvar()
2827 EmitIvarOffset(CGF, ID, Ivar)); in EmitObjCValueForIvar()
2848 const ObjCIvarDecl *Ivar) { in EmitIvarOffset() argument
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCUnusedIVarsChecker.cpp115 for (const auto *Ivar : ID->ivars()) { in checkObjCUnusedIvar() local
121 if (Ivar->getAccessControl() != ObjCIvarDecl::Private || in checkObjCUnusedIvar()
122 Ivar->hasAttr<UnusedAttr>() || Ivar->hasAttr<IBOutletAttr>() || in checkObjCUnusedIvar()
123 Ivar->hasAttr<IBOutletCollectionAttr>() || in checkObjCUnusedIvar()
124 Ivar->isUnnamedBitfield()) in checkObjCUnusedIvar()
127 M[Ivar] = Unused; in checkObjCUnusedIvar()
DCheckObjCDealloc.cpp95 for (const auto *Ivar : ID->ivars()) { in checkObjCDealloc() local
96 QualType T = Ivar->getType(); in checkObjCDealloc()
99 Ivar->hasAttr<IBOutletAttr>() || // Skip IBOutlets. in checkObjCDealloc()
100 Ivar->hasAttr<IBOutletCollectionAttr>()) // Skip IBOutletCollections. in checkObjCDealloc()
/external/clang/lib/Sema/
DSemaObjCProperty.cpp1006 ObjCIvarDecl *Ivar = nullptr; in ActOnPropertyImplDecl() local
1016 Ivar = IDecl->lookupInstanceVariable(PropertyIvar, ClassDeclared); in ActOnPropertyImplDecl()
1031 setImpliedPropertyAttributeForReadOnlyProperty(property, Ivar); in ActOnPropertyImplDecl()
1055 if (!Ivar) { in ActOnPropertyImplDecl()
1092 << PropertyId << (Ivar == nullptr) << PropertyIvar in ActOnPropertyImplDecl()
1099 if (!Ivar) { in ActOnPropertyImplDecl()
1124 Ivar = ObjCIvarDecl::Create(Context, ClassImpDecl, in ActOnPropertyImplDecl()
1134 Ivar->setInvalidDecl(); in ActOnPropertyImplDecl()
1136 Ivar->setInvalidDecl(); in ActOnPropertyImplDecl()
1137 ClassImpDecl->addDecl(Ivar); in ActOnPropertyImplDecl()
[all …]
DSemaAccess.cpp1874 if (ObjCIvarDecl *Ivar = dyn_cast<ObjCIvarDecl>(Decl)) { in IsSimplyAccessible() local
1876 if (Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Public || in IsSimplyAccessible()
1877 Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Package) in IsSimplyAccessible()
1902 if (declaresSameEntity(ClassOfMethodDecl, Ivar->getContainingInterface())) in IsSimplyAccessible()
1906 if (Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Private) in IsSimplyAccessible()
1909 return Ivar->getContainingInterface()->isSuperClassOf(ClassOfMethodDecl); in IsSimplyAccessible()
DSemaCodeComplete.cpp2083 } else if (const ObjCIvarDecl *Ivar = dyn_cast<ObjCIvarDecl>(ND)) { in AddResultTypeChunk() local
2085 T = Ivar->getUsageType(BaseType); in AddResultTypeChunk()
2087 T = Ivar->getType(); in AddResultTypeChunk()
6223 for (ObjCIvarDecl *Ivar = Class->all_declared_ivar_begin(); Ivar; in CodeCompleteObjCPropertySynthesizeIvar() local
6224 Ivar = Ivar->getNextIvar()) { in CodeCompleteObjCPropertySynthesizeIvar()
6225 Results.AddResult(Result(Ivar, Results.getBasePriority(Ivar), nullptr), in CodeCompleteObjCPropertySynthesizeIvar()
6230 if ((PropertyName == Ivar->getIdentifier() || in CodeCompleteObjCPropertySynthesizeIvar()
6231 NameWithPrefix == Ivar->getName() || in CodeCompleteObjCPropertySynthesizeIvar()
6232 NameWithSuffix == Ivar->getName())) { in CodeCompleteObjCPropertySynthesizeIvar()
6240 Results.data()[Results.size() - 1].Declaration == Ivar) in CodeCompleteObjCPropertySynthesizeIvar()
DSemaDeclObjC.cpp3498 for (auto *Ivar : ID->ivars()) { in DiagnoseDuplicateIvars() local
3499 if (Ivar->isInvalidDecl()) in DiagnoseDuplicateIvars()
3501 if (IdentifierInfo *II = Ivar->getIdentifier()) { in DiagnoseDuplicateIvars()
3504 Diag(Ivar->getLocation(), diag::err_duplicate_member) << II; in DiagnoseDuplicateIvars()
3506 Ivar->setInvalidDecl(); in DiagnoseDuplicateIvars()
DSemaLookup.cpp1147 if (ObjCIvarDecl *Ivar = Class->lookupInstanceVariable( in CppLookupName() local
1150 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName()
4196 if (ObjCIvarDecl *Ivar = Class->lookupInstanceVariable(Name)) { in LookupPotentialTypoResult() local
4197 Res.addDecl(Ivar); in LookupPotentialTypoResult()
DAnalysisBasedWarnings.cpp1302 Ivar in diagnoseRepeatedUseOfWeak() enumerator
1313 ObjectKind = Ivar; in diagnoseRepeatedUseOfWeak()
/external/clang/test/SemaObjC/
Divar-lookup.m20 @interface Ivar interface
25 A *Ivar; field
32 …int *ip = [Ivar method]; // expected-warning{{incompatible pointer types initializing 'int *' with…
Dobjc-independent-class-attribute.m17 …NSObject *__attribute__((objc_independent_class)) Ivar; // expected-warning {{'objc_independent_cl… field
/external/clang/include/clang/Index/
DUSRGeneration.h40 void generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS);
/external/clang/lib/ARCMigrate/
DTransProperties.cpp287 ObjCIvarDecl *Ivar; member in __anonf4468bc00111::PropertiesRewriter::PlusOneAssign
289 PlusOneAssign(ObjCIvarDecl *D) : Ivar(D) {} in PlusOneAssign()
294 if (RE->getDecl() != Ivar) in VisitBinAssign()
/external/clang/test/ASTMerge/Inputs/
Dinterface2.m13 // Ivar mismatch
Dinterface1.m13 // Ivar mismatch
/external/clang/test/FixIt/
Dtypo.m128 @interface Ivar interface
144 // Test that we don't correct 'ivar' to 'Ivar' e
/external/clang/lib/AST/
DDeclObjC.cpp58 for (lookup_iterator Ivar = R.begin(), IvarEnd = R.end(); in getIvarDecl() local
59 Ivar != IvarEnd; ++Ivar) { in getIvarDecl()
60 if (ObjCIvarDecl *ivar = dyn_cast<ObjCIvarDecl>(*Ivar)) in getIvarDecl()
1467 ObjCIvarDecl *Ivar; member
1469 : Size(size), Ivar(ivar) {} in SynthesizeIvarChunk()
1543 data().IvarList = layout[0].Ivar; Ix++; in all_declared_ivar_begin()
1546 for ( ; Ix != EIx; curIvar = layout[Ix].Ivar, Ix++) in all_declared_ivar_begin()
1547 curIvar->setNextIvar(layout[Ix].Ivar); in all_declared_ivar_begin()
DASTImporter.cpp4047 ObjCIvarDecl *Ivar = nullptr; in VisitObjCPropertyImplDecl() local
4049 Ivar = cast_or_null<ObjCIvarDecl>( in VisitObjCPropertyImplDecl()
4051 if (!Ivar) in VisitObjCPropertyImplDecl()
4063 Ivar, in VisitObjCPropertyImplDecl()
4086 Ivar != ToImpl->getPropertyIvarDecl()) { in VisitObjCPropertyImplDecl()
4091 << Ivar->getDeclName(); in VisitObjCPropertyImplDecl()
/external/clang/lib/Index/
DUSRGeneration.cpp828 void clang::index::generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS) { in generateUSRForObjCIvar() argument
829 OS << '@' << Ivar; in generateUSRForObjCIvar()
/external/clang/include/clang/AST/
DDeclObjC.h2577 void setPropertyIvarDecl(ObjCIvarDecl *Ivar) { in setPropertyIvarDecl() argument
2578 PropertyIvarDecl = Ivar; in setPropertyIvarDecl()
2674 void setPropertyIvarDecl(ObjCIvarDecl *Ivar, in setPropertyIvarDecl() argument
2676 PropertyIvarDecl = Ivar; in setPropertyIvarDecl()

12