[cfe-commits] r48401 - /cfe/trunk/include/clang/AST/Decl.h

Chris Lattner sabre at nondot.org
Sat Mar 15 16:04:32 PDT 2008


Author: lattner
Date: Sat Mar 15 18:04:32 2008
New Revision: 48401

URL: http://llvm.org/viewvc/llvm-project?rev=48401&view=rev
Log:
Make a ctor protected

Modified:
    cfe/trunk/include/clang/AST/Decl.h

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

==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Sat Mar 15 18:04:32 2008
@@ -514,13 +514,14 @@
 class FieldDecl : public NamedDecl {
   QualType DeclType;  
   Expr *BitWidth;
+protected:
+  FieldDecl(Kind DK, SourceLocation L, IdentifierInfo *Id, QualType T,
+            Expr *BW = NULL)
+    : NamedDecl(DK, L, Id), DeclType(T), BitWidth(BW) {}
 public:
   FieldDecl(SourceLocation L, IdentifierInfo *Id, QualType T, 
             Expr *BW = NULL)
     : NamedDecl(Field, L, Id), DeclType(T), BitWidth(BW) {}
-  FieldDecl(Kind DK, SourceLocation L, IdentifierInfo *Id, QualType T,
-            Expr *BW = NULL)
-    : NamedDecl(DK, L, Id), DeclType(T), BitWidth(BW) {}
 
   QualType getType() const { return DeclType; }
   QualType getCanonicalType() const { return DeclType.getCanonicalType(); }





More information about the cfe-commits mailing list