]> granicus.if.org Git - clang/commitdiff
Added method to access the raw flags of Token.
authorTed Kremenek <kremenek@apple.com>
Tue, 21 Oct 2008 03:32:15 +0000 (03:32 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 21 Oct 2008 03:32:15 +0000 (03:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57877 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Token.h

index 474d4048d154785efbb0b8b290d695368a09c67e..45d8f2b5d4632a721bef899a3641ecf751a16a2b 100644 (file)
@@ -94,6 +94,13 @@ public:
   void clearFlag(TokenFlags Flag) {
     Flags &= ~Flag;
   }
+  
+  /// getFlags - Return the internal represtation of the flags.
+  ///  Only intended for low-level operations such as writing tokens to
+  //   disk.
+  unsigned getFlags() const {
+    return Flags;
+  }
 
   /// setFlagValue - Set a flag to either true or false.
   void setFlagValue(TokenFlags Flag, bool Val) {