[cfe-commits] r46464 - in /cfe/trunk: Sema/SemaDecl.cpp include/clang/AST/Decl.h

Steve Naroff snaroff at apple.com
Mon Jan 28 13:57:15 PST 2008


Author: snaroff
Date: Mon Jan 28 15:57:15 2008
New Revision: 46464

URL: http://llvm.org/viewvc/llvm-project?rev=46464&view=rev
Log:

Implement "private extern" on function decls!


Modified:
    cfe/trunk/Sema/SemaDecl.cpp
    cfe/trunk/include/clang/AST/Decl.h

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=46464&r1=46463&r2=46464&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Mon Jan 28 15:57:15 2008
@@ -678,6 +678,7 @@
       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,

Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=46464&r1=46463&r2=46464&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Jan 28 15:57:15 2008
@@ -425,7 +425,7 @@
 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, 





More information about the cfe-commits mailing list