mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[lex] Bitfieldize some booleans.
Lets us fuse some branches into bit tests downstream. NFC. llvm-svn: 233725
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user