================
@@ -106,6 +106,9 @@ std::string getQualification(ASTContext &Context,
const DeclContext *DestContext,
const DeclContext *SourceContext,
llvm::function_ref<bool(const Decl *)> IsVisible)
{
+
+ if (!Context.getLangOpts().CPlusPlus)
+ return "";
----------------
ArcsinX wrote:
I found that we have several other `getQualification()`s. So the question is:
why we place this check here?
https://github.com/llvm/llvm-project/pull/242500
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits