HomeSort by: relevance | last modified time | path
    Searched refs:Ivar (Results 1 - 25 of 34) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
ObjCUnusedIVarsChecker.cpp 84 // to an ivar.
114 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;
  /src/external/gpl3/gcc/dist/libobjc/objc/
runtime.h 45 /* An 'Ivar' represents an instance variable. It holds information
47 typedef struct objc_ivar *Ivar;
121 qualifiers of method and ivar types. */
270 reuse the returned Ivar if you can. */
271 objc_EXPORT Ivar class_getInstanceVariable (Class class_, const char *name);
275 returned Ivar if you can.
279 objc_EXPORT Ivar class_getClassVariable (Class class_, const char *name);
293 ivar_getOffset (ivar). */
294 objc_EXPORT Ivar object_getInstanceVariable (id object, const char *name, void **returnValue);
301 ivar_getOffset (ivar). *
    [all...]
  /src/external/gpl3/gcc.old/dist/libobjc/objc/
runtime.h 45 /* An 'Ivar' represents an instance variable. It holds information
47 typedef struct objc_ivar *Ivar;
121 qualifiers of method and ivar types. */
270 reuse the returned Ivar if you can. */
271 objc_EXPORT Ivar class_getInstanceVariable (Class class_, const char *name);
275 returned Ivar if you can.
279 objc_EXPORT Ivar class_getClassVariable (Class class_, const char *name);
293 ivar_getOffset (ivar). */
294 objc_EXPORT Ivar object_getInstanceVariable (id object, const char *name, void **returnValue);
301 ivar_getOffset (ivar). *
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGObjCRuntime.cpp 32 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()) {
88 // a synthesized ivar can never be a bit-field, so this is safe
    [all...]
CGObjCRuntime.h 69 // Utility functions for unified ivar access. These need to
73 /// Compute an offset to the given ivar, suitable for passing to
78 /// sythesized ivar.
81 const ObjCIvarDecl *Ivar);
84 const ObjCIvarDecl *Ivar);
89 const ObjCIvarDecl *Ivar,
306 const ObjCIvarDecl *Ivar,
310 const ObjCIvarDecl *Ivar) = 0;
345 const ObjCIvarDecl *Ivar);
CGValue.h 199 // objective-c's ivar
200 bool Ivar:1;
202 // objective-c's ivar is an array
245 this->Ivar = this->ObjIsArray = this->NonGC = this->GlobalObjCRef = false;
272 bool isObjCIvar() const { return Ivar; }
273 void setObjCIvar(bool Value) { Ivar = Value; }
CGObjCGNU.cpp 514 /// Returns the name of ivar offset variables. In the GNUstep v1 ABI, this
515 /// contains the class and ivar names, in the v2 ABI this contains the type
518 const ObjCIvarDecl *Ivar) {
520 + '.' + Ivar->getNameAsString();
525 const ObjCIvarDecl *Ivar);
650 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
654 const ObjCIvarDecl *Ivar) override;
1673 /// In the v2 ABI, ivar offset variables use the type encoding in their name
1676 const ObjCIvarDecl *Ivar) override {
1678 CGM.getContext().getObjCEncodingForType(Ivar->getType(), TypeEncoding)
    [all...]
CGObjCMac.cpp 957 /// BuildIvarLayout - Builds ivar layout bitmap for the class
963 /// actually have any entries, because the ivar might be under-aligned.
1005 /// ivar layout bitmap.
1231 /// to store the weak ivar layout and properties. The return value
1251 /// EmitIvarList - Emit the ivar list for the given
1390 llvm::Value *BaseValue, const ObjCIvarDecl *Ivar,
1394 const ObjCIvarDecl *Ivar) override;
1453 /// EmitIvarList - Emit the ivar list for the given
1461 const ObjCIvarDecl *Ivar,
1527 /// ObjCIvarOffsetVariable - Returns the ivar offset variable fo
3853 auto ivar = ivars.beginStruct(ObjCTypes.IvarTy); local
6992 auto ivar = ivars.beginStruct(ObjCTypes.IvarnfABITy); local
    [all...]
CGExpr.cpp 2151 llvm::Value *BytesBetween = Builder.CreateSub(LHS, RHS, "ivar.offset");
2332 // generating write-barries API. It is currently a global, ivar,
2343 // If ivar is a structure pointer, assigning to field of
2344 // this struct follows gcc's behavior and makes it a non-ivar
2379 // a non-ivar write-barrier.
2412 // Using array syntax to assigning to what an ivar points to is not
2413 // same as assigning to the ivar itself. {id *Names;} Names[i] = 0;
2424 // We don't know if member is an 'ivar', but this flag is looked at
5076 const ObjCIvarDecl *Ivar) {
5077 return CGM.getObjCRuntime().EmitIvarOffset(*this, Interface, Ivar);
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/Index/
USRGeneration.h 47 void generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS);
  /src/external/apache2/llvm/dist/clang/lib/Sema/
SemaObjCProperty.cpp 723 ObjCIvarDecl *ivar) {
724 if (property->isInvalidDecl() || ivar->isInvalidDecl()) return;
726 QualType ivarType = ivar->getType();
737 // None isn't a valid lifetime for an object ivar in ARC, and
744 // If the ivar is private, and it's implicitly __unsafe_unretained
750 ivar->getAccessControl() == ObjCIvarDecl::Private) {
756 ivar->setType(ivarType);
763 S.Diag(ivar->getLocation(), diag::err_arc_strong_property_ownership)
765 << ivar->getDeclName()
770 S.Diag(ivar->getLocation(), diag::err_weak_property
    [all...]
SemaAccess.cpp 1925 if (ObjCIvarDecl *Ivar = dyn_cast<ObjCIvarDecl>(Target)) {
1927 if (Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Public ||
1928 Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Package)
1948 // If we're not in an interface, this ivar is inaccessible.
1952 // If we're inside the same interface that owns the ivar, we're fine.
1953 if (declaresSameEntity(ClassOfMethodDecl, Ivar->getContainingInterface()))
1956 // If the ivar is private, it's inaccessible.
1957 if (Ivar->getCanonicalAccessControl() == ObjCIvarDecl::Private)
1960 return Ivar->getContainingInterface()->isSuperClassOf(ClassOfMethodDecl);
SemaCodeComplete.cpp 2691 } else if (const auto *Ivar = dyn_cast<ObjCIvarDecl>(ND)) {
2693 T = Ivar->getUsageType(BaseType);
2695 T = Ivar->getType();
8124 for (ObjCIvarDecl *Ivar = Class->all_declared_ivar_begin(); Ivar;
8125 Ivar = Ivar->getNextIvar()) {
8126 Results.AddResult(Result(Ivar, Results.getBasePriority(Ivar), nullptr),
8129 // Determine whether we've seen an ivar with a name similar to th
    [all...]
SemaDeclObjC.cpp 2124 /// Add implementations's ivar to the synthesize class's ivar list.
2127 // Add ivar's to class's DeclContext.
2130 // In a 'fragile' runtime the ivar was added to the implicit
2131 // ObjCInterfaceDecl while in a 'non-fragile' runtime the ivar is
2132 // only in the ObjCImplementationDecl. In the non-fragile case the ivar
2141 // If implementation has empty ivar list, just return.
2166 // Instance ivar to Implementation's DeclContext.
2173 // Check interface's Ivar list against those in the implementation.
2182 assert (ImplIvar && "missing implementation ivar");
    [all...]
SemaDecl.cpp 890 DeclResult Ivar = LookupIvarInObjCMethod(Result, S, Name);
891 if (Ivar.isInvalid())
893 if (Ivar.isUsable())
894 return NameClassification::NonType(cast<NamedDecl>(Ivar.get()));
896 // We defer builtin creation until after ivar lookup inside ObjC methods.
1000 // reference the ivar.
1002 if (ObjCIvarDecl *Ivar = Result.getAsSingle<ObjCIvarDecl>()) {
1004 LookupIvarInObjCMethod(Result, S, Ivar->getIdentifier());
1008 return NameClassification::NonType(Ivar);
1226 if (auto *Ivar = dyn_cast<ObjCIvarDecl>(Found->getUnderlyingDecl())
    [all...]
AnalysisBasedWarnings.cpp 1472 Ivar
1483 ObjectKind = Ivar;
SemaLookup.cpp 1358 if (ObjCIvarDecl *Ivar = Class->lookupInstanceVariable(
1361 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) {
4640 if (ObjCIvarDecl *Ivar = Class->lookupInstanceVariable(Name)) {
4641 Res.addDecl(Ivar);
4662 // Fake ivar lookup; this should really be part of
SemaExprObjC.cpp 2133 if (ObjCIvarDecl *Ivar =
2135 QualType T = Ivar->getType();
2145 << MemberName << QualType(OPT, 0) << Ivar->getDeclName()
2305 // FIXME: This is a hack. Ivar lookup should be part of normal
  /src/external/apache2/llvm/dist/clang/lib/ARCMigrate/
TransProperties.cpp 15 // - If a property is synthesized, adds the ownership specifier in the ivar
285 ObjCIvarDecl *Ivar;
287 PlusOneAssign(ObjCIvarDecl *D) : Ivar(D) {}
295 if (RE->getDecl() != Ivar)
  /src/external/apache2/llvm/dist/clang/lib/AST/
DeclObjC.cpp 77 /// getIvarDecl - This method looks up an ivar in this ContextDecl.
82 for (lookup_iterator Ivar = R.begin(), IvarEnd = R.end();
83 Ivar != IvarEnd; ++Ivar) {
84 if (auto *ivar = dyn_cast<ObjCIvarDecl>(*Ivar))
85 return ivar;
1605 ObjCIvarDecl *Ivar;
1607 SynthesizeIvarChunk(uint64_t size, ObjCIvarDecl *ivar)
1608 : Size(size), Ivar(ivar) {
    [all...]
RecordLayoutBuilder.cpp 1434 // Layout each ivar sequentially.
3379 const ObjCIvarDecl *Ivar) const {
3380 const ObjCInterfaceDecl *Container = Ivar->getContainingInterface();
3384 // decl context for the ivar.
3386 // If we know have an implementation (and the ivar is in it) then
3403 if (Ivar == IVD)
3407 assert(Index < RL->getFieldCount() && "Ivar is not inside record layout!");
3433 // Add in synthesized ivar count if laying out an implementation.
Expr.cpp 3859 FieldDecl *Ivar = IvarRef->getDecl();
3860 if (Ivar->isBitField())
3861 return Ivar;
  /src/external/apache2/llvm/dist/clang/lib/Index/
USRGeneration.cpp 207 // The USR for an ivar declared in a class extension is based on the
1046 void clang::index::generateUSRForObjCIvar(StringRef Ivar, raw_ostream &OS) {
1047 OS << '@' << Ivar;
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
DeclObjC.h 769 // Synthesize ivar for this property
917 void setPropertyIvarDecl(ObjCIvarDecl *Ivar) {
918 PropertyIvarDecl = Ivar;
929 /// Get the default name of the synthesized ivar.
1185 /// Indicates that the ivar cache does not yet include ivars
1461 // the ivar chain is essentially a cached property of ObjCInterfaceDecl.
1464 void setIvarList(ObjCIvarDecl *ivar) { data().IvarList = ivar; }
1948 /// Return the class interface that this ivar is logically contained
1949 /// in; this is either the interface where the ivar was declared, or th
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
BugReporterVisitors.cpp 456 /// syntactically has a binary operation writing into the ivar \p Ivar.
458 const ObjCIvarDecl *Ivar) {
460 const char *IvarBind = "Ivar";
466 objcIvarRefExpr(hasDeclaration(equalsNode(Ivar))).bind(IvarBind))));
581 // Region of interest corresponds to an IVar, exiting a method
582 // which could have written into that IVar, but did not.

Completed in 82 milliseconds

1 2