aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Decl.h7
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(); }