Changeset View
Changeset View
Standalone View
Standalone View
include/clang/AST/TypeLoc.h
Context not available. | |||||
SourceLocation LocalRangeBegin; | SourceLocation LocalRangeBegin; | ||||
SourceLocation LParenLoc; | SourceLocation LParenLoc; | ||||
SourceLocation RParenLoc; | SourceLocation RParenLoc; | ||||
SourceRange ExceptionSpecRange; | |||||
rsmith: Can you arrange things so we only store this if there is an exception specification? Or… | |||||
SourceLocation LocalRangeEnd; | SourceLocation LocalRangeEnd; | ||||
}; | }; | ||||
Context not available. | |||||
return SourceRange(getLParenLoc(), getRParenLoc()); | return SourceRange(getLParenLoc(), getRParenLoc()); | ||||
} | } | ||||
SourceRange getExceptionSpecRange() const { | |||||
return this->getLocalData()->ExceptionSpecRange; | |||||
} | |||||
void setExceptionSpecRange(SourceRange R) { | |||||
this->getLocalData()->ExceptionSpecRange = R; | |||||
} | |||||
ArrayRef<ParmVarDecl *> getParams() const { | ArrayRef<ParmVarDecl *> getParams() const { | ||||
return llvm::makeArrayRef(getParmArray(), getNumParams()); | return llvm::makeArrayRef(getParmArray(), getNumParams()); | ||||
} | } | ||||
Context not available. | |||||
setLocalRangeBegin(Loc); | setLocalRangeBegin(Loc); | ||||
setLParenLoc(Loc); | setLParenLoc(Loc); | ||||
setRParenLoc(Loc); | setRParenLoc(Loc); | ||||
setExceptionSpecRange(SourceRange(Loc)); | |||||
setLocalRangeEnd(Loc); | setLocalRangeEnd(Loc); | ||||
for (unsigned i = 0, e = getNumParams(); i != e; ++i) | for (unsigned i = 0, e = getNumParams(); i != e; ++i) | ||||
setParam(i, nullptr); | setParam(i, nullptr); | ||||
Context not available. | |||||
Not Done ReplyInline Actionsauto * malcolm.parsons: `auto *` | |||||
Not Done ReplyInline ActionsSourceRange's constructor from SourceLocation is implicit. malcolm.parsons: `SourceRange`'s constructor from `SourceLocation` is implicit. |
Can you arrange things so we only store this if there is an exception specification? Or, failing that, at least only store it for a FunctionProtoTypeLoc.