]> granicus.if.org Git - clang/commitdiff
[lex] Bitfieldize some booleans.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 31 Mar 2015 18:47:05 +0000 (18:47 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 31 Mar 2015 18:47:05 +0000 (18:47 +0000)
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

include/clang/Lex/LiteralSupport.h

index f60a152a0aa96d4a371d907500f71db9654742fd..5210e3f2e1c506158aeeb63154100fb480820243 100644 (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;