================
@@ -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 "";
----------------
J-Cowsert wrote:
The other `getQualification()` overloads lead to this one. This one check
covers them all.
https://github.com/llvm/llvm-project/pull/242500
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits