18 using namespace clang;
26 if (NumSelArgs == 0) {
35 assert(Index < NumSelArgs);
39 unsigned Len = (II ? II->
getLength() : 0) + 1;
52 return Arg->getBeginLoc();
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...
SourceLocation getLocWithOffset(int Offset) const
Return a source location with the specified offset from this SourceLocation.
Smart pointer class that efficiently represents Objective-C method names.
Represents a parameter to a function.
One of these records is kept for each identifier that is lexed.
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.
unsigned getLength() const
Efficiently return the length of this identifier info.
This represents one expression.
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 ...
unsigned getNumArgs() const
IdentifierInfo * getIdentifierInfoForSlot(unsigned argIndex) const
Retrieve the identifier at a given position in the selector.
Encodes a location in the source.
Dataflow Directional Tag Classes.
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.