logic: fix local symbols in lambda
* fixed the isImplicit method of the ASTVisitor to use the parent context to determine if a lambda record is implicit.
This commit is contained in:
@@ -1452,6 +1452,13 @@ bool ASTVisitor::isImplicit(clang::Decl* d) const
|
||||
|
||||
if (d->isImplicit())
|
||||
{
|
||||
if (clang::RecordDecl* rd = clang::dyn_cast_or_null<clang::RecordDecl>(d))
|
||||
{
|
||||
if (rd->isLambda())
|
||||
{
|
||||
return isImplicit(clang::dyn_cast_or_null<clang::Decl>(d->getDeclContext()));
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if (clang::ClassTemplateSpecializationDecl* ctsd = clang::dyn_cast_or_null<clang::ClassTemplateSpecializationDecl>(d))
|
||||
|
||||
Reference in New Issue
Block a user