summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-31 18:47:05 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-31 18:47:05 +0000
commitacfe7d446beb5cc36f5759747c7a5637f78523db (patch)
tree69ea4b6962b4da07e4ea754a124e8510dae01b37 /clang/include
parent30d589536a47d42222f10ff536081881b3e53914 (diff)
downloadbcm5719-llvm-acfe7d446beb5cc36f5759747c7a5637f78523db.tar.gz
bcm5719-llvm-acfe7d446beb5cc36f5759747c7a5637f78523db.zip
[lex] Bitfieldize some booleans.
Lets us fuse some branches into bit tests downstream. NFC. llvm-svn: 233725
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/Lex/LiteralSupport.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/include/clang/Lex/LiteralSupport.h b/clang/include/clang/Lex/LiteralSupport.h
index f60a152a0aa..5210e3f2e1c 100644
--- a/clang/include/clang/Lex/LiteralSupport.h
+++ b/clang/include/clang/Lex/LiteralSupport.h
@@ -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;
OpenPOWER on IntegriCloud