if (!HI->Value)
HI->Value = printExprValue(N, AST.getASTContext()).PrintedValue;
maybeAddCalleeArgInfo(N, *HI, PP);
- maybeAddSymbolProviders(AST, *HI, include_cleaner::Symbol{*DeclToUse});
+
+ if (!isa<NamespaceDecl>(DeclToUse))
+ maybeAddSymbolProviders(AST, *HI,
+ include_cleaner::Symbol{*DeclToUse});
} else if (const Expr *E = N->ASTNode.get<Expr>()) {
HoverCountMetric.record(1, "expr");
HI = getHoverContents(N, E, AST, PP, Index);
}
ns::F^oo d;
)cpp",
- [](HoverInfo &HI) { HI.Provider = "\"foo.h\""; }}};
+ [](HoverInfo &HI) { HI.Provider = "\"foo.h\""; }},
+ {R"cpp(
+ namespace foo {};
+ using namespace fo^o;
+ )cpp",
+ [](HoverInfo &HI) { HI.Provider = ""; }},
+ };
for (const auto &Case : Cases) {
Annotations Code{Case.Code};