[cfe-dev] clang trunk: extern "C"/static problem

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Mar 15 18:57:10 PDT 2013


> I'm fine with requiring the definition to be lexically within an extern "C"
> block; I view this as being entirely a quality-of-implementation issue,
> though, so doing better than that would also work for me.
>

That would work. I still have a preference for one of the two "basic"
solutions: The status quo or just giving internal functions and
variables language linkage.

The problem that I see with the proposal of adding aliases is that we
are creating a new concept: functions (and variables) that have no
language linkage but are defined in an extern C context. If we
implement that, it would not be unreasonable for users to ask for a
warning in the previous example: the function was just declared (and
not defined) in an extern C context.

Cheers,
Rafael



More information about the cfe-dev mailing list