|
|
@ -708,7 +708,9 @@ static void FormatFieldKind(Formatter& format, |
|
|
|
const int rep_index = (type_card & fl::kRepMask) >> fl::kRepShift; |
|
|
|
const int rep_index = (type_card & fl::kRepMask) >> fl::kRepShift; |
|
|
|
const int tv_index = (type_card & fl::kTvMask) >> fl::kTvShift; |
|
|
|
const int tv_index = (type_card & fl::kTvMask) >> fl::kTvShift; |
|
|
|
|
|
|
|
|
|
|
|
format("("); |
|
|
|
// Use `0|` prefix to eagerly convert the enums to int to avoid enum-enum
|
|
|
|
|
|
|
|
// operations. They are deprecated in C++20.
|
|
|
|
|
|
|
|
format("(0 | "); |
|
|
|
static constexpr const char* kFieldCardNames[] = {"Singular", "Optional", |
|
|
|
static constexpr const char* kFieldCardNames[] = {"Singular", "Optional", |
|
|
|
"Repeated", "Oneof"}; |
|
|
|
"Repeated", "Oneof"}; |
|
|
|
static_assert((fl::kFcSingular >> fl::kFcShift) == 0, ""); |
|
|
|
static_assert((fl::kFcSingular >> fl::kFcShift) == 0, ""); |
|
|
|