logic: implemented skipping to record calls to the constructor of a generated lambda class.

This commit is contained in:
malte_langkabel
2017-02-14 10:35:11 +01:00
parent a6bc9c5465
commit 1520b8bfbf
@@ -531,6 +531,21 @@ void CxxAstVisitorComponentIndexer::visitMemberExpr(clang::MemberExpr* s)
void CxxAstVisitorComponentIndexer::visitCXXConstructExpr(clang::CXXConstructExpr* s)
{
const clang::CXXConstructorDecl* constructorDecl = s->getConstructor();
if (!constructorDecl)
{
return;
}
else
{
const clang::CXXRecordDecl* parentDecl = constructorDecl->getParent();
if (!parentDecl || parentDecl->isLambda())
{
return;
}
}
if (shouldVisitReference(s->getLocation(), getAstVisitor()->getComponent<CxxAstVisitorComponentContext>()->getTopmostContextDecl()))
{
//if (e->getParenOrBraceRange().isValid()) {