Skip to content
Snippets Groups Projects
Commit 5dd2f7c9 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

[lex] Bitfieldize some booleans.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233725 91177308-0d34-0410-b5e6-96231b3b80d8
parent f7168d41
No related branches found
No related tags found
No related merge requests found
...@@ -57,13 +57,13 @@ public: ...@@ -57,13 +57,13 @@ public:
NumericLiteralParser(StringRef TokSpelling, NumericLiteralParser(StringRef TokSpelling,
SourceLocation TokLoc, SourceLocation TokLoc,
Preprocessor &PP); Preprocessor &PP);
bool hadError; bool hadError : 1;
bool isUnsigned; bool isUnsigned : 1;
bool isLong; // This is *not* set for long long. bool isLong : 1; // This is *not* set for long long.
bool isLongLong; bool isLongLong : 1;
bool isFloat; // 1.0f bool isFloat : 1; // 1.0f
bool isImaginary; // 1.0i bool isImaginary : 1; // 1.0i
uint8_t MicrosoftInteger; // Microsoft suffix extension i8, i16, i32, or i64. uint8_t MicrosoftInteger; // Microsoft suffix extension i8, i16, i32, or i64.
bool isIntegerLiteral() const { bool isIntegerLiteral() const {
return !saw_period && !saw_exponent; return !saw_period && !saw_exponent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment