18 using namespace clang;
26 if (NumSelArgs == 0) {
35 assert(Index < NumSelArgs);
39 unsigned Len = (II ? II->
getLength() : 0) + 1;
52 return Arg->getLocStart();
66 return Index < Args.size() ? getArgLoc(Args[Index]) :
SourceLocation();
76 for (i = 0; i != SelLocs.size(); ++i) {
81 if (i == SelLocs.size())
85 for (i = 0; i != SelLocs.size(); ++i) {
101 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc);
110 getArgLoc(Index, Args), EndLoc);
118 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc);
127 getArgLoc(Index, Args), EndLoc);
For nullary selectors, immediately before the end: "[foo release]" / "-(void)release;" Or with a spac...
Smart pointer class that efficiently represents Objective-C method names.
unsigned getLength() const
Efficiently return the length of this identifier info.
ParmVarDecl - Represents a parameter to a function.
IdentifierInfo * getIdentifierInfoForSlot(unsigned argIndex) const
Retrieve the identifier at a given position in the selector.
SelectorLocationsKind hasStandardSelectorLocs(Selector Sel, ArrayRef< SourceLocation > SelLocs, ArrayRef< Expr * > Args, SourceLocation EndLoc)
Returns true if all SelLocs are in a "standard" location.
static SourceLocation getStandardSelLoc(unsigned Index, Selector Sel, bool WithArgSpace, SourceLocation ArgLoc, SourceLocation EndLoc)
SelectorLocationsKind
Whether all locations of the selector identifiers are in a "standard" position.
SourceLocation getLocWithOffset(int Offset) const
Return a source location with the specified offset from this SourceLocation.
unsigned getNumArgs() const
Encodes a location in the source. The SourceManager can decode this to get at the full include stack...
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 ']': "[foo release]".
For nullary selectors, immediately before the end: "[foo release]" / "-(void)release;" Or immediately...