Remove BlockDeclRefExpr and introduce a bit on DeclRefExpr to
track whether the referenced declaration comes from an enclosing local context. I'm amenable to suggestions about the exact meaning of this bit. llvm-svn: 152491
This commit is contained in:
@@ -73,15 +73,6 @@ namespace {
|
||||
return true;
|
||||
}
|
||||
|
||||
// \brief Record occurrences of function and non-type template parameter
|
||||
// packs in a block-captured expression.
|
||||
bool VisitBlockDeclRefExpr(BlockDeclRefExpr *E) {
|
||||
if (E->getDecl()->isParameterPack())
|
||||
Unexpanded.push_back(std::make_pair(E->getDecl(), E->getLocation()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// \brief Record occurrences of template template parameter packs.
|
||||
bool TraverseTemplateName(TemplateName Template) {
|
||||
if (TemplateTemplateParmDecl *TTP
|
||||
|
||||
Reference in New Issue
Block a user