From 6bf1e2627964f12a853b3bb3269a5af720e54d38 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <roberto.raggi@nokia.com>
Date: Fri, 13 Nov 2009 16:59:09 +0100
Subject: [PATCH] Added getters.

---
 src/shared/cplusplus/Token.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/shared/cplusplus/Token.h b/src/shared/cplusplus/Token.h
index 8bafc446875..fe984c8c040 100644
--- a/src/shared/cplusplus/Token.h
+++ b/src/shared/cplusplus/Token.h
@@ -283,6 +283,14 @@ public:
     const char *spell() const;
     void reset();
 
+    inline unsigned kind() const { return f.kind; }
+    inline bool newline() const { return f.newline; }
+    inline bool whitespace() const { return f.whitespace; }
+    inline bool joined() const { return f.joined; }
+    inline bool expanded() const { return f.expanded; }
+    inline bool generated() const { return f.generated; }
+    inline unsigned length() const { return f.length; }
+
     inline unsigned begin() const
     { return offset; }
 
-- 
GitLab