Searched refs:Ivar (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DObjCUnusedIVarsChecker.cpp114 for (const auto *Ivar : ID->ivars()) {
120 if (Ivar->getAccessControl() != ObjCIvarDecl::Private ||
121 Ivar->hasAttr<UnusedAttr>() || Ivar->hasAttr<IBOutletAttr>() ||
122 Ivar->hasAttr<IBOutletCollectionAttr>() ||
123 Ivar->isUnnamedBitfield())
126 M[Ivar] = Unused;
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGObjCRuntime.cpp32 const ObjCIvarDecl *Ivar) {
33 return CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar) /
39 const ObjCIvarDecl *Ivar) {
41 Ivar) /
48 const ObjCIvarDecl *Ivar) {
50 Ivar);
56 const ObjCIvarDecl *Ivar,
64 Ivar->getUsageType(ObjectPtrTy).withCVRQualifiers(CVRQualifiers);
69 if (!Ivar->isBitField()) {
90 CGF.CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar);
30 ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, const ObjCInterfaceDecl *OID, const ObjCIvarDecl *Ivar) argument
37 ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, const ObjCImplementationDecl *OID, const ObjCIvarDecl *Ivar) argument
45 ComputeBitfieldBitOffset( CodeGen::CodeGenModule &CGM, const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar) argument
53 EmitValueForIvarAtOffset(CodeGen::CodeGenFunction &CGF, const ObjCInterfaceDecl *OID, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers, llvm::Value *Offset) argument
[all...]
H A DCGObjCRuntime.h80 const ObjCIvarDecl *Ivar);
83 const ObjCIvarDecl *Ivar);
88 const ObjCIvarDecl *Ivar,
292 const ObjCIvarDecl *Ivar,
296 const ObjCIvarDecl *Ivar) = 0;
331 const ObjCIvarDecl *Ivar);
H A DCGValue.h200 bool Ivar:1;
245 this->Ivar = this->ObjIsArray = this->NonGC = this->GlobalObjCRef = false;
272 bool isObjCIvar() const { return Ivar; }
273 void setObjCIvar(bool Value) { Ivar = Value; }
H A DCGObjCGNU.cpp528 const ObjCIvarDecl *Ivar) {
530 + '.' + Ivar->getNameAsString();
535 const ObjCIvarDecl *Ivar);
660 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
664 const ObjCIvarDecl *Ivar) override;
1678 const ObjCIvarDecl *Ivar) override {
1680 CGM.getContext().getObjCEncodingForType(Ivar->getType(), TypeEncoding);
1685 + '.' + Ivar->getNameAsString() + '.' + TypeEncoding;
1690 const ObjCIvarDecl *Ivar) override {
1691 const std::string Name = GetIVarOffsetVariableName(Ivar
527 GetIVarOffsetVariableName(const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar) argument
2873 auto Ivar = Ivars.beginStruct(ObjCIvarTy); local
4037 ObjCIvarOffsetVariable( const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar) argument
4052 EmitObjCValueForIvar(CodeGenFunction &CGF, QualType ObjectTy, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers) argument
4079 EmitIvarOffset(CodeGenFunction &CGF, const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) argument
[all...]
H A DCGObjCMac.cpp1395 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
1399 const ObjCIvarDecl *Ivar) override;
1466 const ObjCIvarDecl *Ivar,
1537 const ObjCIvarDecl *Ivar);
1707 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
1711 const ObjCIvarDecl *Ivar) override;
5071 const ObjCIvarDecl *Ivar,
5075 return EmitValueForIvarAtOffset(CGF, ID, BaseValue, Ivar, CVRQualifiers,
5076 EmitIvarOffset(CGF, ID, Ivar));
5081 const ObjCIvarDecl *Ivar) {
5068 EmitObjCValueForIvar(CodeGen::CodeGenFunction &CGF, QualType ObjectTy, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers) argument
5079 EmitIvarOffset(CodeGen::CodeGenFunction &CGF, const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) argument
6887 ObjCIvarOffsetVariable(const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar) argument
6919 EmitIvarOffsetVar(const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar, unsigned long int Offset) argument
7213 EmitObjCValueForIvar( CodeGen::CodeGenFunction &CGF, QualType ObjectTy, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers) argument
7226 EmitIvarOffset(CodeGen::CodeGenFunction &CGF, const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) argument
[all...]
H A DCGExpr.cpp4971 const ObjCIvarDecl *Ivar) {
4972 return CGM.getObjCRuntime().EmitIvarOffset(*this, Interface, Ivar);
4977 const ObjCIvarDecl *Ivar,
4980 Ivar, CVRQualifiers);
4970 EmitIvarOffset(const ObjCInterfaceDecl *Interface, const ObjCIvarDecl *Ivar) argument
4975 EmitLValueForIvar(QualType ObjectTy, llvm::Value *BaseValue, const ObjCIvarDecl *Ivar, unsigned CVRQualifiers) argument
H A DCGObjC.cpp753 // sizeof (Type of Ivar), isAtomic, false);
1597 ObjCIvarDecl *Ivar = cast<ObjCIvarDecl>(Field); local
1599 LoadObjCSelf(), Ivar, 0);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Index/
H A DUSRGeneration.h47 void generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaObjCProperty.cpp1209 ObjCIvarDecl *Ivar = nullptr; local
1219 Ivar = IDecl->lookupInstanceVariable(PropertyIvar, ClassDeclared);
1234 setImpliedPropertyAttributeForReadOnlyProperty(property, Ivar);
1257 if (!Ivar) {
1294 << PropertyId << (Ivar == nullptr) << PropertyIvar
1301 if (!Ivar) {
1326 Ivar = ObjCIvarDecl::Create(Context, ClassImpDecl,
1348 Ivar->setInvalidDecl();
1349 ClassImpDecl->addDecl(Ivar);
1350 IDecl->makeDeclVisibleInContext(Ivar);
1592 ObjCIvarDecl *Ivar = nullptr; local
[all...]
H A DSemaAccess.cpp1910 if (ObjCIvarDecl *Ivar = dyn_cast<ObjCIvarDecl>(Target)) {
1912 if (Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Public ||
1913 Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Package)
1938 if (declaresSameEntity(ClassOfMethodDecl, Ivar->getContainingInterface()))
1942 if (Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Private)
1945 return Ivar->getContainingInterface()->isSuperClassOf(ClassOfMethodDecl);
H A DSemaCodeComplete.cpp2639 } else if (const auto *Ivar = dyn_cast<ObjCIvarDecl>(ND)) {
2641 T = Ivar->getUsageType(BaseType);
2643 T = Ivar->getType();
7941 for (ObjCIvarDecl *Ivar = Class->all_declared_ivar_begin(); Ivar;
7942 Ivar = Ivar->getNextIvar()) {
7943 Results.AddResult(Result(Ivar, Results.getBasePriority(Ivar), nullptr),
7948 if ((PropertyName == Ivar
[all...]
H A DSemaLookup.cpp1299 if (ObjCIvarDecl *Ivar = Class->lookupInstanceVariable(
1302 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) {
4547 if (ObjCIvarDecl *Ivar = Class->lookupInstanceVariable(Name)) {
4548 Res.addDecl(Ivar);
H A DSemaDeclObjC.cpp2163 // Check interface's Ivar list against those in the implementation.
3741 for (auto *Ivar : ID->ivars()) {
3742 if (Ivar->isInvalidDecl())
3744 if (IdentifierInfo *II = Ivar->getIdentifier()) {
3747 Diag(Ivar->getLocation(), diag::err_duplicate_member) << II;
3749 Ivar->setInvalidDecl();
H A DSemaDecl.cpp892 DeclResult Ivar = LookupIvarInObjCMethod(Result, S, Name); local
893 if (Ivar.isInvalid())
895 if (Ivar.isUsable())
896 return NameClassification::NonType(cast<NamedDecl>(Ivar.get()));
1004 if (ObjCIvarDecl *Ivar = Result.getAsSingle<ObjCIvarDecl>()) {
1006 LookupIvarInObjCMethod(Result, S, Ivar->getIdentifier());
1010 return NameClassification::NonType(Ivar);
1231 if (auto *Ivar = dyn_cast<ObjCIvarDecl>(Found->getUnderlyingDecl()))
1232 return BuildIvarRefExpr(S, NameLoc, Ivar);
16919 ObjCIvarDecl *Ivar local
[all...]
H A DAnalysisBasedWarnings.cpp1470 Ivar enumerator in enum:__anon1999
1481 ObjectKind = Ivar;
H A DSemaExprObjC.cpp2121 if (ObjCIvarDecl *Ivar =
2123 QualType T = Ivar->getType();
2133 << MemberName << QualType(OPT, 0) << Ivar->getDeclName()
2293 // FIXME: This is a hack. Ivar lookup should be part of normal
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransProperties.cpp286 ObjCIvarDecl *Ivar; member in class:__anon1542::PropertiesRewriter::PlusOneAssign
288 PlusOneAssign(ObjCIvarDecl *D) : Ivar(D) {}
296 if (RE->getDecl() != Ivar)
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DDeclObjC.cpp81 for (lookup_iterator Ivar = R.begin(), IvarEnd = R.end();
82 Ivar != IvarEnd; ++Ivar) {
83 if (auto *ivar = dyn_cast<ObjCIvarDecl>(*Ivar))
1594 ObjCIvarDecl *Ivar; member in struct:__anon1569::SynthesizeIvarChunk
1597 : Size(size), Ivar(ivar) {}
1672 data().IvarList = layout[0].Ivar; Ix++;
1675 for ( ; Ix != EIx; curIvar = layout[Ix].Ivar, Ix++)
1676 curIvar->setNextIvar(layout[Ix].Ivar);
1779 // Ivar'
[all...]
H A DRecordLayoutBuilder.cpp3195 const ObjCIvarDecl *Ivar) const {
3196 const ObjCInterfaceDecl *Container = Ivar->getContainingInterface();
3219 if (Ivar == IVD)
3223 assert(Index < RL->getFieldCount() && "Ivar is not inside record layout!");
H A DExpr.cpp3918 FieldDecl *Ivar = IvarRef->getDecl();
3919 if (Ivar->isBitField())
3920 return Ivar;
/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp1041 void clang::index::generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS) { argument
1042 OS << '@' << Ivar; local
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DDeclObjC.h932 void setPropertyIvarDecl(ObjCIvarDecl *Ivar) { argument
933 PropertyIvarDecl = Ivar;
1993 /// NextIvar - Next Ivar in the list of ivars declared in class; class's
2826 void setPropertyIvarDecl(ObjCIvarDecl *Ivar, argument
2828 PropertyIvarDecl = Ivar;
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp434 /// syntactically has a binary operation writing into the ivar \p Ivar.
436 const ObjCIvarDecl *Ivar) {
438 const char *IvarBind = "Ivar";
444 objcIvarRefExpr(hasDeclaration(equalsNode(Ivar))).bind(IvarBind))));
435 potentiallyWritesIntoIvar(const Decl *Parent, const ObjCIvarDecl *Ivar) argument
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.cpp3794 ObjCIvarDecl *Ivar = IVars[i]; local
3796 &Context->Idents.get(Ivar->getName()),
3797 Ivar->getType(),
3798 nullptr, /*Expr *BW */Ivar->getBitWidth(),
6733 if (Ivar->getAccessControl() == ObjCIvarDecl::Private ||
6734 Ivar->getAccessControl() == ObjCIvarDecl::Package ||

Completed in 693 milliseconds

12