[PATCH] D26189: Add a note that points to the linkage specifier for the "must have C++ linkage" errors

Erik Pilkington via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 1 08:35:41 PDT 2016


erik.pilkington added inline comments.


================
Comment at: lib/Sema/SemaTemplate.cpp:5946
+    if (const LinkageSpecDecl *LSD = Ctx->getExternCContext())
+      Diag(LSD->getExternLoc(), diag::note_module_import_in_extern_c);
+    return true;
----------------
Can you update the name of this diagnostic to not mention modules, now that we use it more generally?


Repository:
  rL LLVM

https://reviews.llvm.org/D26189





More information about the cfe-commits mailing list