Home
last modified time | relevance | path

Searched refs:Sel (Results 1 – 25 of 67) sorted by relevance

123

/external/clang/lib/AST/
DNSAPI.cpp40 Selector Sel; in getNSStringSelector() local
43 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithString")); in getNSStringSelector()
46 Sel = Ctx.Selectors.getUnarySelector( in getNSStringSelector()
54 Sel = Ctx.Selectors.getSelector(2, KeyIdents); in getNSStringSelector()
58 Sel= Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("stringWithCString")); in getNSStringSelector()
61 Sel = Ctx.Selectors.getUnarySelector(&Ctx.Idents.get("initWithString")); in getNSStringSelector()
64 return (NSStringSelectors[MK] = Sel); in getNSStringSelector()
71 NSAPI::getNSStringMethodKind(Selector Sel) const { in getNSStringMethodKind()
74 if (Sel == getNSStringSelector(MK)) in getNSStringMethodKind()
83 Selector Sel; in getNSArraySelector() local
[all …]
DSelectorLocationsKind.cpp21 Selector Sel, in getStandardSelLoc() argument
25 unsigned NumSelArgs = Sel.getNumArgs(); in getStandardSelLoc()
30 IdentifierInfo *II = Sel.getIdentifierInfoForSlot(0); in getStandardSelLoc()
38 IdentifierInfo *II = Sel.getIdentifierInfoForSlot(Index); in getStandardSelLoc()
70 SelectorLocationsKind hasStandardSelLocs(Selector Sel, in hasStandardSelLocs() argument
77 if (SelLocs[i] != getStandardSelectorLoc(i, Sel, /*WithArgSpace=*/false, in hasStandardSelLocs()
86 if (SelLocs[i] != getStandardSelectorLoc(i, Sel, /*WithArgSpace=*/true, in hasStandardSelLocs()
97 clang::hasStandardSelectorLocs(Selector Sel, in hasStandardSelectorLocs() argument
101 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs()
105 Selector Sel, in getStandardSelectorLoc() argument
[all …]
DDeclObjC.cpp68 ObjCContainerDecl::getMethod(Selector Sel, bool isInstance, in getMethod() argument
86 lookup_const_result R = lookup(Sel); in getMethod()
103 Selector Sel = Property->getSetterName(); in HasUserDeclaredSetterMethod() local
104 lookup_const_result R = lookup(Sel); in HasUserDeclaredSetterMethod()
116 if (ObjCMethodDecl *MD = Cat->getInstanceMethod(Sel)) in HasUserDeclaredSetterMethod()
431 bool ObjCInterfaceDecl::isDesignatedInitializer(Selector Sel, in isDesignatedInitializer() argument
443 if (const ObjCMethodDecl *MD = IFace->getInstanceMethod(Sel)) { in isDesignatedInitializer()
451 if (const ObjCMethodDecl *MD = Ext->getInstanceMethod(Sel)) { in isDesignatedInitializer()
544 ObjCMethodDecl *ObjCInterfaceDecl::lookupMethod(Selector Sel, in lookupMethod() argument
561 if ((MethodDecl = ClassDecl->getMethod(Sel, isInstance))) in lookupMethod()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DObjCMissingSuperCallChecker.cpp45 explicit FindSuperCallVisitor(Selector S) : DoesCallSuper(false), Sel(S) {} in FindSuperCallVisitor()
48 if (E->getSelector() == Sel) in VisitObjCMessageExpr()
59 Selector Sel; member in FindSuperCallVisitor
78 void fillSelectors(ASTContext &Ctx, ArrayRef<SelectorDescriptor> Sel,
104 ArrayRef<SelectorDescriptor> Sel, in fillSelectors() argument
108 for (ArrayRef<SelectorDescriptor>::iterator I = Sel.begin(), E = Sel.end(); in fillSelectors()
116 Selector Sel = Ctx.Selectors.getSelector(Descriptor.ArgumentCount, &II); in fillSelectors() local
117 ClassSelectors.insert(Sel); in fillSelectors()
DSelectorExtras.h48 static inline void lazyInitKeywordSelector(Selector &Sel, ASTContext &Ctx, in lazyInitKeywordSelector() argument
50 if (!Sel.isNull()) in lazyInitKeywordSelector()
54 Sel = getKeywordSelectorImpl(Ctx, First, argp); in lazyInitKeywordSelector()
58 static inline void lazyInitNullarySelector(Selector &Sel, ASTContext &Ctx, in lazyInitNullarySelector() argument
60 if (!Sel.isNull()) in lazyInitNullarySelector()
62 Sel = GetNullarySelector(Name, Ctx); in lazyInitNullarySelector()
DNoReturnFunctionChecker.cpp118 Selector Sel = Msg.getSelector(); in checkPostObjCMessage() local
119 switch (Sel.getNumArgs()) { in checkPostObjCMessage()
126 if (Sel != HandleFailureInFunctionSel) in checkPostObjCMessage()
133 if (Sel != HandleFailureInMethodSel) in checkPostObjCMessage()
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp68 Selector Sel = Msg->getSelector(); in rewriteObjCRedundantCallWithLiteral() local
72 (NS.getNSStringSelector(NSAPI::NSStr_stringWithString) == Sel || in rewriteObjCRedundantCallWithLiteral()
73 NS.getNSStringSelector(NSAPI::NSStr_initWithString) == Sel)) || in rewriteObjCRedundantCallWithLiteral()
77 (NS.getNSArraySelector(NSAPI::NSArr_arrayWithArray) == Sel || in rewriteObjCRedundantCallWithLiteral()
78 NS.getNSArraySelector(NSAPI::NSArr_initWithArray) == Sel)) || in rewriteObjCRedundantCallWithLiteral()
83 NSAPI::NSDict_dictionaryWithDictionary) == Sel || in rewriteObjCRedundantCallWithLiteral()
84 NS.getNSDictionarySelector(NSAPI::NSDict_initWithDictionary) == Sel))) { in rewriteObjCRedundantCallWithLiteral()
303 Selector Sel = Msg->getSelector(); in rewriteToObjCSubscriptSyntax() local
305 if (Sel == NS.getNSArraySelector(NSAPI::NSArr_objectAtIndex)) in rewriteToObjCSubscriptSyntax()
308 if (Sel == NS.getNSDictionarySelector(NSAPI::NSDict_objectForKey)) in rewriteToObjCSubscriptSyntax()
[all …]
/external/clang/include/clang/AST/
DNSAPI.h55 Optional<NSStringMethodKind> getNSStringMethodKind(Selector Sel) const;
87 Optional<NSArrayMethodKind> getNSArrayMethodKind(Selector Sel);
109 Optional<NSDictionaryMethodKind> getNSDictionaryMethodKind(Selector Sel);
167 Selector Sel) const { in isNSNumberLiteralSelector() argument
168 return Sel == getNSNumberLiteralSelector(MK, false) || in isNSNumberLiteralSelector()
169 Sel == getNSNumberLiteralSelector(MK, true); in isNSNumberLiteralSelector()
174 getNSNumberLiteralMethodKind(Selector Sel) const;
192 Selector getOrInitSelector(ArrayRef<StringRef> Ids, Selector &Sel) const;
DSelectorLocationsKind.h46 SelectorLocationsKind hasStandardSelectorLocs(Selector Sel,
58 Selector Sel,
64 SelectorLocationsKind hasStandardSelectorLocs(Selector Sel,
76 Selector Sel,
DDeclObjC.h317 Selector Sel = getSelector(); in getNumSelectorLocs() local
318 if (Sel.isUnarySelector()) in getNumSelectorLocs()
320 return Sel.getNumArgs(); in getNumSelectorLocs()
582 ObjCMethodDecl *getMethod(Selector Sel, bool isInstance,
584 ObjCMethodDecl *getInstanceMethod(Selector Sel,
586 return getMethod(Sel, true/*isInstance*/, AllowHidden);
588 ObjCMethodDecl *getClassMethod(Selector Sel, bool AllowHidden = false) const {
589 return getMethod(Sel, false/*isInstance*/, AllowHidden);
819 ObjCMethodDecl *getCategoryInstanceMethod(Selector Sel) const;
820 ObjCMethodDecl *getCategoryClassMethod(Selector Sel) const;
[all …]
DExprObjC.h940 Selector Sel,
950 Selector Sel,
960 Selector Sel,
1011 Selector Sel,
1061 Selector Sel,
1095 Selector Sel,
1129 Selector Sel,
1351 Selector Sel = getSelector();
1352 if (Sel.isUnarySelector())
1354 return Sel.getNumArgs();
/external/clang/lib/Sema/
DSemaExprObjC.cpp151 Selector Sel, const ObjCMethodDecl *Method) { in validateBoxingMethod() argument
154 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName(); in validateBoxingMethod()
162 << Sel; in validateBoxingMethod()
192 Selector Sel = S.NSAPIObj->getNSNumberLiteralSelector(*Kind, in getNSNumberFactoryMethod() local
228 ObjCMethodDecl *Method = S.NSNumberDecl->lookupClassMethod(Sel); in getNSNumberFactoryMethod()
233 ObjCMethodDecl::Create(CX, SourceLocation(), SourceLocation(), Sel, in getNSNumberFactoryMethod()
248 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method)) in getNSNumberFactoryMethod()
657 Sel = NSAPIObj->getNSArraySelector(NSAPI::NSArr_arrayWithObjectsCount); in BuildObjCArrayLiteral() local
658 ObjCMethodDecl *Method = NSArrayDecl->lookupClassMethod(Sel); in BuildObjCArrayLiteral()
662 Context, SourceLocation(), SourceLocation(), Sel, IdT, ReturnTInfo, in BuildObjCArrayLiteral()
[all …]
DMultiplexExternalSemaSource.cpp58 Selector Sel; in GetExternalSelector() local
60 Sel = Sources[i]->GetExternalSelector(ID); in GetExternalSelector()
61 if (!Sel.isNull()) in GetExternalSelector()
62 return Sel; in GetExternalSelector()
64 return Sel; in GetExternalSelector()
191 void MultiplexExternalSemaSource::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument
193 Sources[i]->ReadMethodPool(Sel); in ReadMethodPool()
DSemaDeclObjC.cpp1926 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local
1930 if (SuperIDecl && SuperIDecl->lookupMethod(Sel, true)) in CheckCategoryVsClassMethodMatches()
1932 InsMap.insert(Sel); in CheckCategoryVsClassMethodMatches()
1936 Selector Sel = I->getSelector(); in CheckCategoryVsClassMethodMatches() local
1937 if (SuperIDecl && SuperIDecl->lookupMethod(Sel, false)) in CheckCategoryVsClassMethodMatches()
1939 ClsMap.insert(Sel); in CheckCategoryVsClassMethodMatches()
2269 void Sema::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument
2271 ExternalSource->ReadMethodPool(Sel); in ReadMethodPool()
2313 ObjCMethodDecl *Sema::LookupMethodInGlobalPool(Selector Sel, SourceRange R, in LookupMethodInGlobalPool() argument
2317 ReadMethodPool(Sel); in LookupMethodInGlobalPool()
[all …]
DSemaCodeComplete.cpp242 void setPreferredSelector(Selector Sel) { in setPreferredSelector() argument
243 PreferredSelector = Sel; in setPreferredSelector()
2725 Selector Sel = Method->getSelector(); in CreateCodeCompletionString() local
2726 if (Sel.isUnarySelector()) { in CreateCodeCompletionString()
2728 Sel.getNameForSlot(0))); in CreateCodeCompletionString()
2732 std::string SelName = Sel.getNameForSlot(0).str(); in CreateCodeCompletionString()
2752 if (IdentifierInfo *II = Sel.getIdentifierInfoForSlot(Idx)) in CreateCodeCompletionString()
4739 static bool isAcceptableObjCSelector(Selector Sel, in isAcceptableObjCSelector() argument
4744 if (NumSelIdents > Sel.getNumArgs()) in isAcceptableObjCSelector()
4749 case MK_ZeroArgSelector: return Sel.isUnarySelector(); in isAcceptableObjCSelector()
[all …]
DSemaExprMember.cpp396 const Selector &Sel, in FindGetterSetterNameDeclFromProtocolList() argument
401 if (ObjCMethodDecl *OMD = PDecl->getInstanceMethod(Sel)) in FindGetterSetterNameDeclFromProtocolList()
405 if (Decl *D = FindGetterSetterNameDeclFromProtocolList(I, Member, Sel, in FindGetterSetterNameDeclFromProtocolList()
414 const Selector &Sel, in FindGetterSetterNameDecl() argument
425 if (ObjCMethodDecl *OMD = I->getInstanceMethod(Sel)) { in FindGetterSetterNameDecl()
433 GDecl = FindGetterSetterNameDeclFromProtocolList(I, Member, Sel, Context); in FindGetterSetterNameDecl()
1417 Selector Sel = S.PP.getSelectorTable().getNullarySelector(Member); in LookupMemberExpr() local
1419 FindGetterSetterNameDecl(OPT, Member, Sel, S.Context)) { in LookupMemberExpr()
1472 Selector Sel = S.PP.getSelectorTable().getNullarySelector(Member); in LookupMemberExpr() local
1475 if ((Getter = IFace->lookupClassMethod(Sel))) { in LookupMemberExpr()
[all …]
/external/llvm/lib/Target/R600/
DR600EmitClauseMarkers.cpp102 std::pair<unsigned, unsigned> getAccessedBankLine(unsigned Sel) const { in getAccessedBankLine()
107 ((Sel >> 2) - 512) >> 12, // KC_BANK in getAccessedBankLine()
113 ((((Sel >> 2) - 512) & 4095) >> 5) << 1); in getAccessedBankLine()
131 unsigned Sel = Consts[i].second; in SubstituteKCacheBank() local
132 unsigned Chan = Sel & 3, Index = ((Sel >> 2) - 512) & 31; in SubstituteKCacheBank()
134 const std::pair<unsigned, unsigned> &BankLine = getAccessedBankLine(Sel); in SubstituteKCacheBank()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp727 Selector Sel) const { in canBeOverridenInSubclass()
752 D = IDecl->lookupMethod(Sel, true); in canBeOverridenInSubclass()
784 Selector Sel = E->getSelector(); in getRuntimeDefinition() local
810 if (!canBeOverridenInSubclass(IDecl, Sel)) in getRuntimeDefinition()
838 Optional<const ObjCMethodDecl *> &Val = PMC[std::make_pair(IDecl, Sel)]; in getRuntimeDefinition()
842 Val = IDecl->lookupPrivateMethod(Sel); in getRuntimeDefinition()
849 Val = IDecl->lookupInstanceMethod(Sel); in getRuntimeDefinition()
865 return RuntimeDefinition(IDecl->lookupPrivateClassMethod(Sel)); in getRuntimeDefinition()
874 Selector Sel = getSelector(); in argumentsMayEscape() local
875 if (Sel.getNumArgs() == 1 && in argumentsMayEscape()
[all …]
/external/clang/lib/Analysis/
DCallGraph.cpp70 Selector Sel = ME->getSelector(); in VisitObjCMessageExpr() local
75 D = IDecl->lookupPrivateMethod(Sel); in VisitObjCMessageExpr()
77 D = IDecl->lookupPrivateClassMethod(Sel); in VisitObjCMessageExpr()
/external/clang/lib/Serialization/
DASTCommon.cpp80 unsigned serialization::ComputeHash(Selector Sel) { in ComputeHash() argument
81 unsigned N = Sel.getNumArgs(); in ComputeHash()
86 if (IdentifierInfo *II = Sel.getIdentifierInfoForSlot(I)) in ComputeHash()
DASTCommon.h66 unsigned ComputeHash(Selector Sel);
/external/clang/lib/CodeGen/
DCGObjCRuntime.h123 Selector Sel, bool lval=false) = 0;
156 Selector Sel,
172 Selector Sel,
/external/clang/include/clang/Index/
DUSRGeneration.h43 void generateUSRForObjCMethod(StringRef Sel, bool IsInstanceMethod,
/external/clang/lib/Frontend/
DChainedIncludesSource.cpp70 void ReadMethodPool(Selector Sel) override;
280 void ChainedIncludesSource::ReadMethodPool(Selector Sel) { in ReadMethodPool() argument
281 getFinalReader().ReadMethodPool(Sel); in ReadMethodPool()
/external/clang/include/clang/Serialization/
DASTDeserializationListener.h49 virtual void SelectorRead(serialization::SelectorID iD, Selector Sel) { } in SelectorRead() argument

123