Added method to access the raw flags of Token.

llvm-svn: 57877
This commit is contained in:
Ted Kremenek 2008-10-21 03:32:15 +00:00
parent 9f20b6a610
commit 4e0f205145
1 changed files with 7 additions and 0 deletions

View 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) {