[cfe-commits] r46464 - in /cfe/trunk: Sema/SemaDecl.cpp include/clang/AST/Decl.h
snaroff at apple.com
Mon Jan 28 16:39:31 PST 2008
On Jan 28, 2008, at 3:08 PM, Anton Korobeynikov wrote:
>> Implement "private extern" on function decls!
> Shouldn't this have some target-specific guard? I thought, that
> extern" is darwin-only extension...
You are correct (__private_extern__ is an Apple-specific extension).
At the moment, clang warns about language extensions when compiling
with -pedantic (i.e. the "guard" is implemented as part of keyword
[snaroff:llvm/tools/clang] snarofflocal% ../../Debug/bin/clang -
pe.c:2:1: warning: extension used
__private_extern__ int a;
> With best regards, Anton Korobeynikov.
> Faculty of Mathematics & Mechanics, Saint Petersburg State University.
More information about the cfe-commits