From ef3b215c946d4813408b5fe872fe2baa3b246b00 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 21 Oct 2008 03:32:15 +0000 Subject: [PATCH] Added method to access the raw flags of Token. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57877 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Lex/Token.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/clang/Lex/Token.h b/include/clang/Lex/Token.h index 474d4048d1..45d8f2b5d4 100644 --- a/include/clang/Lex/Token.h +++ b/include/clang/Lex/Token.h @@ -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) { -- 2.40.0