r178333 - Don't special case one line extern "C" decls.

David Blaikie dblaikie at gmail.com
Mon Apr 15 22:01:25 PDT 2013


On Mon, Apr 15, 2013 at 9:20 PM, Rafael EspĂ­ndola
<rafael.espindola at gmail.com> wrote:
>> Where's the code that avoids warning for that case? It seems like that
>> logic should be broadened, rather than needing another particular case
>> added, no?
>
> When this was written getStorageClassAsWritten would return SC_None
>
> extern "C" const char *Version_string = "2.9";
>
> but SC_Extern for
>
> extern "C" {
>   extern const char *Version_string2 = "2.9";
> }
>
> Since then getStorageClassAsWritten has been removed and the new
> getStorageClass handles both cases uniformly.

& the special case has been removed, then, I take it?




More information about the cfe-commits mailing list