[clang-tools-extra] [clangd] Avoid C++ name qualification in C (PR #242500)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 26 12:29:48 PST 2026
================
@@ -718,6 +722,8 @@ std::string getQualification(ASTContext &Context,
const DeclContext *DestContext,
const NamedDecl *ND,
llvm::ArrayRef<std::string> VisibleNamespaces) {
+ if (!Context.getLangOpts().CPlusPlus)
+ return "";
----------------
ArcsinX wrote:
Firstly, I wanted to write that we have no coverage for this change. But after that I found that we have no usages of this `getQualification()`. So, maybe we can remove this as a follow-up and in this case we don't need this check, because we can remove this function entirely soon.
WDYT?
https://github.com/llvm/llvm-project/pull/242500
More information about the cfe-commits
mailing list