[lex] Bitfieldize some booleans.

Lets us fuse some branches into bit tests downstream. NFC.

llvm-svn: 233725
This commit is contained in:
Benjamin Kramer
2015-03-31 18:47:05 +00:00
parent 30d589536a
commit acfe7d446b

View File

@@ -57,13 +57,13 @@ public:
NumericLiteralParser(StringRef TokSpelling,
SourceLocation TokLoc,
Preprocessor &PP);
bool hadError;
bool isUnsigned;
bool isLong; // This is *not* set for long long.
bool isLongLong;
bool isFloat; // 1.0f
bool isImaginary; // 1.0i
uint8_t MicrosoftInteger; // Microsoft suffix extension i8, i16, i32, or i64.
bool hadError : 1;
bool isUnsigned : 1;
bool isLong : 1; // This is *not* set for long long.
bool isLongLong : 1;
bool isFloat : 1; // 1.0f
bool isImaginary : 1; // 1.0i
uint8_t MicrosoftInteger; // Microsoft suffix extension i8, i16, i32, or i64.
bool isIntegerLiteral() const {
return !saw_period && !saw_exponent;