From: Ted Kremenek Date: Tue, 21 Oct 2008 03:32:15 +0000 (+0000) Subject: Added method to access the raw flags of Token. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ef3b215c946d4813408b5fe872fe2baa3b246b00;p=clang 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 --- 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) {