logic: skip recording implicit local symbols

* for example this would be the parameter of an implicitly defined copy constructor
This commit is contained in:
mlangkabel
2018-10-30 13:34:16 +01:00
parent 73cf651664
commit 1497941c3d
55 changed files with 6 additions and 300 deletions
@@ -525,8 +525,12 @@ void CxxAstVisitorComponentIndexer::visitDeclRefExpr(clang::DeclRefExpr* s)
{
if ((clang::isa<clang::ParmVarDecl>(decl)) ||
(clang::isa<clang::VarDecl>(decl) && decl->getParentFunctionOrMethod() != nullptr)
) {
m_client->recordLocalSymbol(getLocalSymbolName(decl->getLocation()), getParseLocation(s->getLocation()));
) {
if (!utility::isImplicit(decl))
{
m_client->recordLocalSymbol(getLocalSymbolName(decl->getLocation()), getParseLocation(s->getLocation()));
}
// else { don't do anything }
}
else
{