logic: skip recording implicit local symbols
* for example this would be the parameter of an implicitly defined copy constructor
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user