From: Chris Lattner Date: Sat, 15 Mar 2008 23:04:32 +0000 (+0000) Subject: Make a ctor protected X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fbdeba1c530dc3534a6f5b788e43d1a43c260128;p=clang Make a ctor protected git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48401 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index b53d5d3bcb..7c3560c503 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -514,13 +514,14 @@ protected: 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(); }