[cfe-commits] [patch][pr14766] Reject invalid redeclarations of extern C functions and variables

Richard Smith richard at metafoo.co.uk
Thu Jan 10 18:51:32 PST 2013


+template<typename T>
+static bool mayConflictWithNonVisibleExternC(const T *ND) {
+  if (ND->hasCLanguageLinkage() && ND->getStorageClass() == SC_Extern)
+    return true;

Hmm, is this check equivalent to ND->isExternC() ?

On Thu, Jan 10, 2013 at 5:48 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
> Rebased patch attached.
>
> Cheers,
> Rafael




More information about the cfe-commits mailing list