Export of internal Abseil changes
-- 832be2d52d7695cf72fd70248909791fb8ad1003 by Gennadiy Rozental <rogeeff@google.com>: Migrate some FlagImpl fields to bit fields. To save padding space we are migrating some fields representing bool and enums into bit fields. Eventually we'll use remaining padding space for call_once control flag. No other semantic changes made in this CL. PiperOrigin-RevId: 293878165 -- 09162bba5fd8eddacfd732d46fcfeb33074a259f by Samuel Benzaquen <sbenza@google.com>: Correctly initialize the `length_mod` member. Now that it is a raw enum, the default initialization is not enough. PiperOrigin-RevId: 293827817 -- 842b7b805d75c5ab670c52ccd7368cdeba11853d by Matthew Brown <matthewbr@google.com>: Move str_format_internal::LengthMod from extension.h to parser.h; change to enum PiperOrigin-RevId: 293697274 GitOrigin-RevId: 832be2d52d7695cf72fd70248909791fb8ad1003 Change-Id: I90899519e9480543e22638616fdf31a41e7f75c0
This commit is contained in:
parent
24713a7036
commit
d95d156716
9 changed files with 120 additions and 132 deletions
|
|
@ -22,28 +22,6 @@
|
|||
namespace absl {
|
||||
ABSL_NAMESPACE_BEGIN
|
||||
namespace str_format_internal {
|
||||
namespace {
|
||||
// clang-format off
|
||||
#define ABSL_LENGTH_MODS_EXPAND_ \
|
||||
X_VAL(h) X_SEP \
|
||||
X_VAL(hh) X_SEP \
|
||||
X_VAL(l) X_SEP \
|
||||
X_VAL(ll) X_SEP \
|
||||
X_VAL(L) X_SEP \
|
||||
X_VAL(j) X_SEP \
|
||||
X_VAL(z) X_SEP \
|
||||
X_VAL(t) X_SEP \
|
||||
X_VAL(q)
|
||||
// clang-format on
|
||||
} // namespace
|
||||
|
||||
const LengthMod::Spec LengthMod::kSpecs[] = {
|
||||
#define X_VAL(id) { LengthMod::id, #id, strlen(#id) }
|
||||
#define X_SEP ,
|
||||
ABSL_LENGTH_MODS_EXPAND_, {LengthMod::none, "", 0}
|
||||
#undef X_VAL
|
||||
#undef X_SEP
|
||||
};
|
||||
|
||||
const ConversionChar::Spec ConversionChar::kSpecs[] = {
|
||||
#define X_VAL(id) { ConversionChar::id, #id[0] }
|
||||
|
|
@ -64,8 +42,6 @@ std::string Flags::ToString() const {
|
|||
return s;
|
||||
}
|
||||
|
||||
const size_t LengthMod::kNumValues;
|
||||
|
||||
const size_t ConversionChar::kNumValues;
|
||||
|
||||
bool FormatSinkImpl::PutPaddedString(string_view v, int w, int p, bool l) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue