[cfe-commits] r57877 - /cfe/trunk/include/clang/Lex/Token.h
Ted Kremenek
kremenek at apple.com
Mon Oct 20 20:32:15 PDT 2008
Author: kremenek
Date: Mon Oct 20 22:32:15 2008
New Revision: 57877
URL: http://llvm.org/viewvc/llvm-project?rev=57877&view=rev
Log:
Added method to access the raw flags of Token.
Modified:
cfe/trunk/include/clang/Lex/Token.h
Modified: cfe/trunk/include/clang/Lex/Token.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/Token.h?rev=57877&r1=57876&r2=57877&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/Token.h (original)
+++ cfe/trunk/include/clang/Lex/Token.h Mon Oct 20 22:32:15 2008
@@ -94,6 +94,13 @@
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) {
More information about the cfe-commits
mailing list