forked from OSchip/llvm-project
Teach TemplateDecl::getSourceRange() to cover the entire declaration,
from Peter Collingbourne! llvm-svn: 105951
This commit is contained in:
parent
329ea064ed
commit
7d14ffc6ef
|
@ -264,6 +264,11 @@ public:
|
|||
return K >= firstTemplate && K <= lastTemplate;
|
||||
}
|
||||
|
||||
SourceRange getSourceRange() const {
|
||||
return SourceRange(TemplateParams->getTemplateLoc(),
|
||||
TemplatedDecl->getSourceRange().getEnd());
|
||||
}
|
||||
|
||||
protected:
|
||||
NamedDecl *TemplatedDecl;
|
||||
TemplateParameterList* TemplateParams;
|
||||
|
|
Loading…
Reference in New Issue