diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-15 23:04:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-15 23:04:32 +0000 |
commit | fbdeba1c530dc3534a6f5b788e43d1a43c260128 (patch) | |
tree | 3f94aedf78f44b12c557d2c2b2c474464923fac5 | |
parent | 4454006bce2caa7f1f368c28db52babf2fd8d606 (diff) |
Make a ctor protected
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48401 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Decl.h | 7 |
1 files changed, 4 insertions, 3 deletions
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(); } |