25 if (NumSelArgs == 0) {
34 assert(Index < NumSelArgs);
38 unsigned Len = (II ? II->
getLength() : 0) + 1;
65 return Index < Args.size() ? getArgLoc(Args[Index]) :
SourceLocation();
75 for (i = 0; i != SelLocs.size(); ++i) {
80 if (i == SelLocs.size())
84 for (i = 0; i != SelLocs.size(); ++i) {
100 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc);
109 getArgLoc(Index, Args), EndLoc);
117 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc);
126 getArgLoc(Index, Args), EndLoc);
static SourceLocation getStandardSelLoc(unsigned Index, Selector Sel, bool WithArgSpace, SourceLocation ArgLoc, SourceLocation EndLoc)
SourceLocation getBeginLoc() const LLVM_READONLY
This represents one expression.
One of these records is kept for each identifier that is lexed.
unsigned getLength() const
Efficiently return the length of this identifier info.
Represents a parameter to a function.
Smart pointer class that efficiently represents Objective-C method names.
const IdentifierInfo * getIdentifierInfoForSlot(unsigned argIndex) const
Retrieve the identifier at a given position in the selector.
unsigned getNumArgs() const
Encodes a location in the source.
SourceLocation getLocWithOffset(IntTy Offset) const
Return a source location with the specified offset from this SourceLocation.
SourceLocation getBeginLoc() const LLVM_READONLY
The JSON file list parser is used to communicate input to InstallAPI.
SelectorLocationsKind
Whether all locations of the selector identifiers are in a "standard" position.
@ SelLoc_StandardWithSpace
For nullary selectors, immediately before the end: "[foo release]" / "-(void)release;" Or with a spac...
@ SelLoc_NonStandard
Non-standard.
@ SelLoc_StandardNoSpace
For nullary selectors, immediately before the end: "[foo release]" / "-(void)release;" Or immediately...
SelectorLocationsKind hasStandardSelectorLocs(Selector Sel, ArrayRef< SourceLocation > SelLocs, ArrayRef< Expr * > Args, SourceLocation EndLoc)
Returns true if all SelLocs are in a "standard" location.
SourceLocation getStandardSelectorLoc(unsigned Index, Selector Sel, bool WithArgSpace, ArrayRef< Expr * > Args, SourceLocation EndLoc)
Get the "standard" location of a selector identifier, e.g: For nullary selectors, immediately before ...
const FunctionProtoType * T