aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-28 06:53:40 +0000
committerChris Lattner <sabre@nondot.org>2009-03-28 06:53:40 +0000
commite66a8cf9117e5fb95a05ff76ec06615e63dd5ade (patch)
tree5c604fc36cd99807f6fb57d4c0ebbac9261fc4e0 /include/clang
parent0632dd6fe068011af5710c0d6a745724021ff620 (diff)
some random cleanups
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67928 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/AST/DeclGroup.h1
-rw-r--r--include/clang/AST/Stmt.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/AST/DeclGroup.h b/include/clang/AST/DeclGroup.h
index 9b5aa1c58d..c9d0d655cb 100644
--- a/include/clang/AST/DeclGroup.h
+++ b/include/clang/AST/DeclGroup.h
@@ -57,7 +57,6 @@ public:
};
class DeclGroupRef {
-protected:
enum Kind { SingleDeclKind=0x0, DeclGroupKind=0x1, Mask=0x1 };
Decl* D;
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h
index 28822129e1..25217215f5 100644
--- a/include/clang/AST/Stmt.h
+++ b/include/clang/AST/Stmt.h
@@ -225,7 +225,6 @@ public:
/// the first statement can be an expression or a declaration.
///
class DeclStmt : public Stmt {
-protected:
DeclGroupRef DG;
SourceLocation StartLoc, EndLoc;
public:
@@ -243,6 +242,9 @@ public:
const Decl *getSingleDecl() const { return DG.getSingleDecl(); }
Decl *getSingleDecl() { return DG.getSingleDecl(); }
+
+ const DeclGroupRef getDeclGroup() const { return DG; }
+ DeclGroupRef getDeclGroup() { return DG; }
SourceLocation getStartLoc() const { return StartLoc; }
SourceLocation getEndLoc() const { return EndLoc; }