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;
|
return K >= firstTemplate && K <= lastTemplate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SourceRange getSourceRange() const {
|
||||||
|
return SourceRange(TemplateParams->getTemplateLoc(),
|
||||||
|
TemplatedDecl->getSourceRange().getEnd());
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
NamedDecl *TemplatedDecl;
|
NamedDecl *TemplatedDecl;
|
||||||
TemplateParameterList* TemplateParams;
|
TemplateParameterList* TemplateParams;
|
||||||
|
|
Loading…
Reference in New Issue