From: Steve Naroff Date: Mon, 28 Jan 2008 21:57:15 +0000 (+0000) Subject: Implement "private extern" on function decls! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7dd0bd4f8f83d9e679c830b30d67028b3609fde1;p=clang Implement "private extern" on function decls! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46464 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 8719ad7992..7c089ee37b 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -678,6 +678,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl) { case DeclSpec::SCS_unspecified: SC = FunctionDecl::None; break; case DeclSpec::SCS_extern: SC = FunctionDecl::Extern; break; case DeclSpec::SCS_static: SC = FunctionDecl::Static; break; + case DeclSpec::SCS_private_extern: SC = FunctionDecl::PrivateExtern;break; } FunctionDecl *NewFD = new FunctionDecl(D.getIdentifierLoc(), II, R, SC, diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 9e78de3d2e..cc96b0732d 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -425,7 +425,7 @@ protected: class FunctionDecl : public ValueDecl { public: enum StorageClass { - None, Extern, Static + None, Extern, Static, PrivateExtern }; FunctionDecl(SourceLocation L, IdentifierInfo *Id, QualType T, StorageClass S = None, bool isInline = false,