/Users/deen/code/yugabyte-db/src/yb/util/enums.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Copyright (c) YugaByte, Inc. |
2 | | // |
3 | | // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
4 | | // in compliance with the License. You may obtain a copy of the License at |
5 | | // |
6 | | // http://www.apache.org/licenses/LICENSE-2.0 |
7 | | // |
8 | | // Unless required by applicable law or agreed to in writing, software distributed under the License |
9 | | // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
10 | | // or implied. See the License for the specific language governing permissions and limitations |
11 | | // under the License. |
12 | | // |
13 | | |
14 | | #ifndef YB_UTIL_ENUMS_H_ |
15 | | #define YB_UTIL_ENUMS_H_ |
16 | | |
17 | | #include <bitset> |
18 | | #include <string> |
19 | | |
20 | | #include <boost/algorithm/string/predicate.hpp> |
21 | | #include <boost/core/demangle.hpp> |
22 | | #include <boost/preprocessor/cat.hpp> |
23 | | #include <boost/preprocessor/expr_if.hpp> |
24 | | #include <boost/preprocessor/facilities/apply.hpp> |
25 | | #include <boost/preprocessor/if.hpp> |
26 | | #include <boost/preprocessor/punctuation/is_begin_parens.hpp> |
27 | | #include <boost/preprocessor/seq/enum.hpp> |
28 | | #include <boost/preprocessor/seq/for_each.hpp> |
29 | | #include <boost/preprocessor/seq/transform.hpp> |
30 | | #include <boost/preprocessor/stringize.hpp> |
31 | | |
32 | | #include "yb/util/math_util.h" // For constexpr_max |
33 | | #include "yb/util/result.h" |
34 | | |
35 | | namespace yb { |
36 | | |
37 | | // Convert a strongly typed enum to its underlying type. |
38 | | // Based on an answer to this StackOverflow question: https://goo.gl/zv2Wg3 |
39 | | template <typename E> |
40 | 253M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { |
41 | 253M | return static_cast<typename std::underlying_type<E>::type>(e); |
42 | 253M | } Unexecuted instantiation: _ZN2yb13to_underlyingINS_5tools8FileTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb7KeyTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb13StorageDbTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3Env8FileTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5tools17DataPatcherActionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11CleanupTypeEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus12LeaderStatusEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb19UpdateUserValueTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb24FrontierModificationModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb22KeyValueEncodingFormatEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb13OperationKindEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb14IntentStrengthEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb12FlushAbilityEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client24GrantRevokeStatementTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet9FlushModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet12RequireLeaseEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb22RateLimiterSharingModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb9BoundTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb15ListExtendOrderEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb20UpdateBoundariesTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb10FlushStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb9BlockTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_18BinaryOutputFormatEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_20ThreadPoolTokenStateEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb14FilterDecisionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc15ServicePriorityEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc18InvokeCallbackModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client7OpGroupEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_16UsePrivateIpModeEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3log22SegmentAllocationStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_15SubprocessStateEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_20SubprocessStreamModeEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb12OutputFormatEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb13to_underlyingINS_5tools12_GLOBAL__N_116ListTabletsFlagsEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb13to_underlyingINS_5tools12_GLOBAL__N_110AddIndexesEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6server17SecureContextTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5tools10enterprise17ListSnapshotsFlagEEENSt3__115underlying_typeIT_E4typeES6_ _ZN2yb13to_underlyingINS_9StdFdTypeEEENSt3__115underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 58 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 58 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 58 | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_8DataTypeEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb10DocKeyPartEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb15GetDocPathsModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb16DocOperationTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb19ResolvedIntentStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb9DirectionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb20SeekIntentIterNeededEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_15StackTraceGroupEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc12ResolveStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_19WriteBatchFieldKindEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_22WriteBatchOutputFormatEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb18InitMarkerBehaviorEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus17LeaderLeaseStatusEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc13TransferStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9pgwrapper14PgProcessStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_7tserver13TabletDirTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_15ListPeersFilterEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_12ConnectivityEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_4bfql17ConvertDecimalViaEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_20TransactionErrorCodeEEENSt3__115underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 101k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 101k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 101k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client11WriteOpTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client13kv_table_test12PartitioningEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet14SafeTimeSourceEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet25CreateIntentsCheckpointInEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc15RpcRetrierStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc15BackoffStrategyEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master13GetTablesModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_4bfql8BFOpcodeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus12ElectionModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus17StateChangeReasonEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus10RejectModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6server18MonitoredTaskStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client18BankAccountsOptionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus18RequestTriggerModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus12ElectionVoteEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus20LeaderLeaseCheckModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus13OperationModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb9TestDocDbEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_5docdb10IntentTypeEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 95.2M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 95.2M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 95.2M | } |
_ZN2yb13to_underlyingINS_5docdb9ValueTypeEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 8 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 8 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 8 | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_14load_generator25MultiThreadedReaderOptionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_14load_generator10ReadStatusEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master10enterprise13CreateObjectsEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master16TServersViewTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_14IsolationLevelEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: geo_transactions-test.cc:_ZN2yb13to_underlyingINS_6client12_GLOBAL__N_116ExpectedLocalityEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9pgwrapper14IndexStateFlagEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: pg_mini-test.cc:_ZN2yb13to_underlyingINS_9pgwrapper12_GLOBAL__N_113TestStatementEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9pgwrapper17FlushOrCompactionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_2ql14TreeNodeOpcodeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11redisserver14RedisReplyTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11redisserver10SubOrUnsubEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11redisserver16PatternOrChannelEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11redisserver14LocalOrClusterEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb26BuilderReaderBloomTestTypeEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingIN7rocksdb9IndexTypeEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 16.3k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 16.3k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 16.3k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc16MarkAsDoneResultEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc12ReactorStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test18AddRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test25AddRequestPartialPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test19AddResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test20SleepRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test26SendStringsRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test19EchoRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test20EchoResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test22WhoAmIResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test21CalculatorErrorFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test19PingRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test20PingResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test22ForwardRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test23ForwardResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test21ConcatRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test22ConcatResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test22TrivialRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test20TrivialErrorPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_8rpc_test23TrivialResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ mvcc-test.cc:_ZN2yb13to_underlyingIZNS_6tablet8MvccTest17RunRandomizedTestEbE6OpTypeEENSt3__115underlying_typeIT_E4typeES6_ Line | Count | Source | 40 | 40.0k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 40.0k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 40.0k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_9TableTypeEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client11YBTableTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5tools8KeyStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_5tools7helpers7TableOpEEENSt3__115underlying_typeIT_E4typeES6_ _ZN2yb13to_underlyingINS_10TestPBEnumEEENSt3__115underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 3 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 3 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 3 | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_18TaskStreamRunStateEEENSt3__115underlying_typeIT_E4typeES4_ _ZN2yb13to_underlyingINS_3rpc9AnyFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 2 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 2 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 2 | } |
_ZN2yb13to_underlyingINS_7tserver41TabletServerBackupServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 1.42k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 1.42k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 1.42k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus13OperationTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3cdc6OpTypeEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_3cdc26CDCServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 800 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 800 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 800 | } |
_ZN2yb13to_underlyingINS_8PeerRoleEEENSt3__115underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 1.13M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 1.13M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 1.13M | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus16PeerMessageQueue4ModeEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9consensus16PeerMessageQueue5StateEEENSt3__115underlying_typeIT_E4typeES6_ _ZN2yb13to_underlyingINS_9consensus40SetMajorityReplicatedLeaseExpirationFlagEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 30.3M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 30.3M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 30.3M | } |
_ZN2yb13to_underlyingINS_9consensus32ConsensusServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 109k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 109k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 109k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingI14CassValueType_EENSt3__115underlying_typeIT_E4typeES4_ _ZN2yb13to_underlyingINS_6master11CollectFlagEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 21 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 21 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 21 | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master25SysNamespaceEntryPB_StateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master29SnapshotScheduleOperationTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb13to_underlyingINS_6master12_GLOBAL__N_15BoundEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb13to_underlyingINS_6master12_GLOBAL__N_112RestorePhaseEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master24SysSnapshotEntryPB_StateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_7tserver35TabletSnapshotOpRequestPB_OperationEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master15SysRowEntryTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6master28MasterBackupRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_6master27MasterAdminRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 204k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 204k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 204k | } |
_ZN2yb13to_underlyingINS_6master28MasterClientRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 158k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 158k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 158k | } |
_ZN2yb13to_underlyingINS_6master29MasterClusterRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 639k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 639k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 639k | } |
_ZN2yb13to_underlyingINS_6master25MasterDclRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 136k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 136k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 136k | } |
_ZN2yb13to_underlyingINS_6master25MasterDdlRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 654k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 654k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 654k | } |
_ZN2yb13to_underlyingINS_6master32MasterEncryptionRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 22.9k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 22.9k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 22.9k | } |
_ZN2yb13to_underlyingINS_6master31MasterHeartbeatRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 5.46k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 5.46k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 5.46k | } |
_ZN2yb13to_underlyingINS_6master33MasterReplicationRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 317k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 317k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 317k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_12OpIdPBFieldsEEENSt3__115underlying_typeIT_E4typeES4_ _ZN2yb13to_underlyingINS_7tserver31PgClientServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 39.6k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 39.6k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 39.6k | } |
Unexecuted instantiation: audit_logger.cc:_ZN2yb13to_underlyingINS_2ql5audit12_GLOBAL__N_18CategoryEEENSt3__115underlying_typeIT_E4typeES7_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc19ConnectionDirectionEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN9rapidjson4TypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: pt_select.cc:_ZN2yb13to_underlyingINS_2ql12_GLOBAL__N_113OpSelectivityEEENSt3__115underlying_typeIT_E4typeES6_ _ZN2yb13to_underlyingINS_2ql9ErrorCodeEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 758k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 758k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 758k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_21QLResponsePB_QLStatusEEENSt3__115underlying_typeIT_E4typeES4_ _ZN2yb13to_underlyingINS_7tserver38RemoteBootstrapServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 910 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 910 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 910 | } |
_ZN2yb13to_underlyingIN7rocksdb10InsertFlagEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 85.3M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 85.3M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 85.3M | } |
Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb10BgTaskTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingIN7rocksdb12SubCacheTypeEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingIN7rocksdb11TimeoutCodeEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 176 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 176 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 176 | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc20RemoteMethodPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc19RequestHeaderFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc20ResponseHeaderFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc19ErrorStatusPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_8rpc_test27LightweightResponsePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 136 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 136 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 136 | } |
_ZN2yb13to_underlyingINS_8rpc_test29LightweightSubMessagePBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 522 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 522 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 522 | } |
_ZN2yb13to_underlyingINS_8rpc_test23LightweightPairPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 338 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 338 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 338 | } |
_ZN2yb13to_underlyingINS_8rpc_test45LightweightResponsePB_MapEntry_DoNotUseFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 88 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 88 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 88 | } |
_ZN2yb13to_underlyingINS_8rpc_test44LightweightRequestPB_MapEntry_DoNotUseFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 22 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 22 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 22 | } |
_ZN2yb13to_underlyingINS_8rpc_test26LightweightRequestPBFieldsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 84 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 84 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 84 | } |
_ZN2yb13to_underlyingINS_8rpc_test33CalculatorServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 891 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 891 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 891 | } |
_ZN2yb13to_underlyingINS_8rpc_test29AbacusServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 1 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 1 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 1 | } |
_ZN2yb13to_underlyingINS_6server30GenericServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 38.5k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 38.5k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 38.5k | } |
_ZN2yb13to_underlyingINS_19TransactionLoadFlagEEENSt3__115underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 3.49M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 3.49M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 3.49M | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet12RemoveReasonEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet22UpdateAbortCheckHTModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_17TransactionStatusEEENSt3__115underlying_typeIT_E4typeES4_ _ZN2yb13to_underlyingINS_6tablet13OperationTypeEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 27.7M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 27.7M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 27.7M | } |
_ZN2yb13to_underlyingINS_6tablet10FlushFlagsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 486k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 486k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 486k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_5docdb17TransactionDumpOpEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet10WriteQuery11ExecuteModeEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_7tserver20ReadTimeManipulationEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client8internal12BatcherStateEEENSt3__115underlying_typeIT_E4typeES6_ _ZN2yb13to_underlyingINS_15PgSystemAttrNumEEENSt3__115underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 3.30M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 3.30M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 3.30M | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client15ClientErrorCodeEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_7tserver40TabletServerAdminServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 18.5k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 18.5k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 18.5k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_7tserver42TabletServerForwardServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ _ZN2yb13to_underlyingINS_7tserver35TabletServerServiceRpcMethodIndexesEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 246k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 246k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 246k | } |
Unexecuted instantiation: _ZN2yb13to_underlyingINS_21AppStatusPB_ErrorCodeEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6tablet16RaftGroupStatePBEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11redisserver15RedisClientModeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: redis_service.cc:_ZN2yb13to_underlyingINS_11redisserver12_GLOBAL__N_113OperationTypeEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_11redisserver11RedisParser5StateEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client8YBClient16ReplicaSelectionEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_2ql10ObjectTypeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: transaction.cc:_ZN2yb13to_underlyingINS_6client12_GLOBAL__N_116TransactionStateEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6client13MetadataStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_19TransactionLocalityEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_9QLValuePB9ValueCaseEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6Status4CodeEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: cql_operation.cc:_ZN2yb13to_underlyingINS_5docdb12_GLOBAL__N_110ValueStateEEENSt3__115underlying_typeIT_E4typeES6_ _ZN2yb13to_underlyingINS_5docdb15SystemColumnIdsEEENSt3__115underlying_typeIT_E4typeES5_ Line | Count | Source | 40 | 3.13M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 3.13M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 3.13M | } |
_ZN2yb13to_underlyingINSt3__113future_statusEEENS1_15underlying_typeIT_E4typeES4_ Line | Count | Source | 40 | 164 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 164 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 164 | } |
Unexecuted instantiation: transaction_status_cache.cc:_ZN2yb13to_underlyingINS_5docdb12_GLOBAL__N_116CommitTimeSourceEEENSt3__115underlying_typeIT_E4typeES6_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_6pggate16PgIsolationLevelEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_19AggregationFunctionEEENSt3__115underlying_typeIT_E4typeES4_ Unexecuted instantiation: priority_thread_pool.cc:_ZN2yb13to_underlyingINS_12_GLOBAL__N_127PriorityThreadPoolTaskStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: stack_trace.cc:_ZN2yb13to_underlyingINS_12_GLOBAL__N_116ThreadStackStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc18RefinedStreamStateEEENSt3__115underlying_typeIT_E4typeES5_ Unexecuted instantiation: _ZN2yb13to_underlyingINS_3rpc9LocalSideEEENSt3__115underlying_typeIT_E4typeES5_ |
43 | | |
44 | | // YB_DEFINE_ENUM |
45 | | // ----------------------------------------------------------------------------------------------- |
46 | | |
47 | | // A convenient way to define enums along with string conversion functions. |
48 | | // Example: |
49 | | // |
50 | | // YB_DEFINE_ENUM(MyEnum, (kFoo)(kBar)(kBaz)) |
51 | | // |
52 | | // This will define |
53 | | // - An enum class MyEnum with values FOO, BAR, and BAZ. |
54 | | // - A ToString() function converting a value of MyEnum to std::string, including a diagnostic |
55 | | // string for invalid values. |
56 | | // - A stream output operator for MyEnum using the above ToString function. |
57 | | // - A ToCString() function converting an enum value to a C string, or nullptr for invalid values. |
58 | | |
59 | | #define YB_ENUM_ITEM_NAME(elem) \ |
60 | | BOOST_PP_IF(BOOST_PP_IS_BEGIN_PARENS(elem), BOOST_PP_TUPLE_ELEM(2, 0, elem), elem) |
61 | | |
62 | | #define YB_ENUM_ITEM_VALUE(elem) \ |
63 | | BOOST_PP_EXPR_IF(BOOST_PP_IS_BEGIN_PARENS(elem), = BOOST_PP_TUPLE_ELEM(2, 1, elem)) |
64 | | |
65 | | #define YB_ENUM_ITEM(s, data, elem) \ |
66 | | BOOST_PP_CAT(BOOST_PP_APPLY(data), YB_ENUM_ITEM_NAME(elem)) YB_ENUM_ITEM_VALUE(elem), |
67 | | |
68 | | #define YB_ENUM_LIST_ITEM(s, data, elem) \ |
69 | | BOOST_PP_TUPLE_ELEM(2, 0, data):: \ |
70 | | BOOST_PP_CAT(BOOST_PP_APPLY(BOOST_PP_TUPLE_ELEM(2, 1, data)), YB_ENUM_ITEM_NAME(elem)) |
71 | | |
72 | | #define YB_ENUM_CASE_NAME(s, data, elem) \ |
73 | 3.14M | case BOOST_PP_TUPLE_ELEM(2, 0, data):: \ |
74 | 3.14M | BOOST_PP_CAT(BOOST_PP_APPLY(BOOST_PP_TUPLE_ELEM(2, 1, data)), YB_ENUM_ITEM_NAME(elem)): \ |
75 | 3.14M | return BOOST_PP_STRINGIZE(YB_ENUM_ITEM_NAME(elem)); |
76 | | |
77 | | #define YB_ENUM_ITEMS(enum_name, prefix, list) \ |
78 | | BOOST_PP_SEQ_ENUM(BOOST_PP_SEQ_TRANSFORM(YB_ENUM_LIST_ITEM, (enum_name, prefix), list)) |
79 | | |
80 | | #define YB_ENUM_MAP_SIZE(enum_name, prefix, list) \ |
81 | | static_cast<size_t>(::yb::constexpr_max(YB_ENUM_ITEMS(enum_name, prefix, list))) + 1 |
82 | | |
83 | | #define YB_ENUM_MAX_ENUM_NAME(enum_name, prefix, value) enum_name |
84 | | #define YB_ENUM_MAX_PREFIX(enum_name, prefix, value) prefix |
85 | | #define YB_ENUM_MAX_VALUE(enum_name, prefix, value) value |
86 | | |
87 | | #define YB_DEFINE_ENUM_IMPL(enum_name, prefix, list) \ |
88 | | enum class enum_name { \ |
89 | | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_ITEM, prefix, list) \ |
90 | | }; \ |
91 | | \ |
92 | 3.14M | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ |
93 | 3.14M | switch(value) { \ |
94 | 3.14M | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ |
95 | 3.14M | } \ |
96 | 8 | return nullptr; \ |
97 | 3.14M | } \ Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_7KeyTypeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_13StorageDbTypeE Unexecuted instantiation: _ZN2yb5tools9ToCStringENS0_17DataPatcherActionE Unexecuted instantiation: _ZN2yb9ToCStringENS_19TransactionLoadFlagE Unexecuted instantiation: _ZN2yb9ToCStringENS_11CleanupTypeE Unexecuted instantiation: _ZN2yb9consensus9ToCStringENS0_12LeaderStatusE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_19UpdateUserValueTypeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_24FrontierModificationModeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_22KeyValueEncodingFormatE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_13OperationKindE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_14IntentStrengthE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_12FlushAbilityE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_9IndexTypeE Unexecuted instantiation: _ZN2yb6client9ToCStringENS0_24GrantRevokeStatementTypeE Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_9FlushModeE Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_12RequireLeaseE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_9BoundTypeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_15ListExtendOrderE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_20UpdateBoundariesTypeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_10FlushStateE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_10InsertFlagE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_9BlockTypeE Unexecuted instantiation: _ZN2yb9ToCStringENS_18BinaryOutputFormatE Unexecuted instantiation: _ZN2yb9ToCStringENS_20ThreadPoolTokenStateE Unexecuted instantiation: _ZN2yb5tools9ToCStringENS0_8FileTypeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_14FilterDecisionE Unexecuted instantiation: _ZN2yb6master9ToCStringENS0_11CollectFlagE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_15ServicePriorityE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_18InvokeCallbackModeE Unexecuted instantiation: _ZN2yb6client9ToCStringENS0_7OpGroupE Unexecuted instantiation: _ZN2yb3log9ToCStringENS0_22SegmentAllocationStateE Unexecuted instantiation: _ZN2yb9ToCStringENS_9StdFdTypeE Unexecuted instantiation: _ZN2yb9ToCStringENS_15SubprocessStateE Unexecuted instantiation: _ZN2yb9ToCStringENS_20SubprocessStreamModeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_13StorageDbTypeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_7KeyTypeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_12OutputFormatE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_19ToCStringENS1_16ListTabletsFlagsE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_19ToCStringENS1_10AddIndexesE _ZN2yb5tools10enterprise9ToCStringENS1_17ListSnapshotsFlagE Line | Count | Source | 92 | 4 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 4 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 4 | } \ | 96 | 0 | return nullptr; \ | 97 | 4 | } \ |
Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_10DocKeyPartE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_15GetDocPathsModeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_16DocOperationTypeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_19ResolvedIntentStateE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_9DirectionE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_20SeekIntentIterNeededE Unexecuted instantiation: _ZN2yb9ToCStringENS_15StackTraceGroupE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_12ResolveStateE Unexecuted instantiation: _ZN2yb9ToCStringENS_19WriteBatchFieldKindE Unexecuted instantiation: _ZN2yb9ToCStringENS_22WriteBatchOutputFormatE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_18InitMarkerBehaviorE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_13TransferStateE Unexecuted instantiation: _ZN2yb9pgwrapper9ToCStringENS0_14PgProcessStateE Unexecuted instantiation: _ZN2yb7tserver9ToCStringENS0_13TabletDirTypeE Unexecuted instantiation: _ZN2yb9ToCStringENS_15ListPeersFilterE Unexecuted instantiation: _ZN2yb9ToCStringENS_12ConnectivityE Unexecuted instantiation: _ZN2yb4bfql9ToCStringENS0_17ConvertDecimalViaE _ZN2yb9ToCStringENS_20TransactionErrorCodeE Line | Count | Source | 92 | 136k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 136k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 136k | } \ | 96 | 0 | return nullptr; \ | 97 | 136k | } \ |
Unexecuted instantiation: _ZN2yb6client9ToCStringENS0_11WriteOpTypeE Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_14SafeTimeSourceE Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_25CreateIntentsCheckpointInE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_15BackoffStrategyE Unexecuted instantiation: _ZN2yb6master9ToCStringENS0_13GetTablesModeE Unexecuted instantiation: _ZN2yb9consensus9ToCStringENS0_10RejectModeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_22KeyValueEncodingFormatE Unexecuted instantiation: _ZN2yb6client9ToCStringENS0_18BankAccountsOptionE _ZN2yb9consensus9ToCStringENS0_12ElectionVoteE Line | Count | Source | 92 | 2 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 2 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 2 | } \ | 96 | 0 | return nullptr; \ | 97 | 2 | } \ |
_ZN2yb9consensus9ToCStringENS0_18RequestTriggerModeE Line | Count | Source | 92 | 1 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 1 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 1 | } \ | 96 | 0 | return nullptr; \ | 97 | 1 | } \ |
Unexecuted instantiation: _ZN2yb9consensus9ToCStringENS0_40SetMajorityReplicatedLeaseExpirationFlagE Unexecuted instantiation: _ZN2yb9consensus9ToCStringENS0_13OperationModeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_14FilterDecisionE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_14IntentStrengthE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_16DocOperationTypeE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_9TestDocDbE _ZN2yb5docdb9ToCStringENS0_22RateLimiterSharingModeE Line | Count | Source | 92 | 10.4k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 10.4k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 10.4k | } \ | 96 | 0 | return nullptr; \ | 97 | 10.4k | } \ |
_ZN2yb5docdb9ToCStringENS0_10IntentTypeE Line | Count | Source | 92 | 188 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 188 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 188 | } \ | 96 | 0 | return nullptr; \ | 97 | 188 | } \ |
_ZN2yb5docdb9ToCStringENS0_9ValueTypeE Line | Count | Source | 92 | 9 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 9 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 9 | } \ | 96 | 8 | return nullptr; \ | 97 | 9 | } \ |
Unexecuted instantiation: _ZN2yb14load_generator9ToCStringENS0_10ReadStatusE Unexecuted instantiation: _ZN2yb14load_generator9ToCStringENS0_25MultiThreadedReaderOptionE Unexecuted instantiation: _ZN2yb14load_generator9ToCStringENS0_10ReadStatusE Unexecuted instantiation: _ZN2yb6master10enterprise9ToCStringENS1_13CreateObjectsE Unexecuted instantiation: _ZN2yb6master9ToCStringENS0_16TServersViewTypeE _ZN2yb6client13kv_table_test9ToCStringENS1_12PartitioningE Line | Count | Source | 92 | 164 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 164 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 164 | } \ | 96 | 0 | return nullptr; \ | 97 | 164 | } \ |
Unexecuted instantiation: geo_transactions-test.cc:_ZN2yb6client12_GLOBAL__N_19ToCStringENS1_16ExpectedLocalityE Unexecuted instantiation: _ZN2yb9pgwrapper9ToCStringENS0_14IndexStateFlagE Unexecuted instantiation: pg_mini-test.cc:_ZN2yb9pgwrapper12_GLOBAL__N_19ToCStringENS1_13TestStatementE Unexecuted instantiation: _ZN2yb9pgwrapper9ToCStringENS0_17FlushOrCompactionE Unexecuted instantiation: _ZN2yb2ql9ToCStringENS0_14TreeNodeOpcodeE Unexecuted instantiation: _ZN2yb2ql9ToCStringENS0_14TreeNodeOpcodeE Unexecuted instantiation: _ZN2yb11redisserver9ToCStringENS0_14RedisReplyTypeE Unexecuted instantiation: _ZN2yb11redisserver9ToCStringENS0_10SubOrUnsubE Unexecuted instantiation: _ZN2yb11redisserver9ToCStringENS0_16PatternOrChannelE Unexecuted instantiation: _ZN2yb11redisserver9ToCStringENS0_14LocalOrClusterE _ZN7rocksdb9ToCStringENS_26BuilderReaderBloomTestTypeE Line | Count | Source | 92 | 54 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 54 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 54 | } \ | 96 | 0 | return nullptr; \ | 97 | 54 | } \ |
Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_9IndexTypeE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_16MarkAsDoneResultE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_12ReactorStateE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_9AnyFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_18AddRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_25AddRequestPartialPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_19AddResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_20SleepRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_26SendStringsRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_19EchoRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_20EchoResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_22WhoAmIResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_21CalculatorErrorFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_19PingRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_20PingResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_22ForwardRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_23ForwardResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_21ConcatRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_22ConcatResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_29LightweightSubMessagePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_23LightweightPairPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_44LightweightRequestPB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_26LightweightRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_45LightweightResponsePB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_27LightweightResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_22TrivialRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_20TrivialErrorPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test9ToCStringENS0_23TrivialResponsePBFieldsE Unexecuted instantiation: _ZN2yb5tools9ToCStringENS0_8KeyStateE Unexecuted instantiation: _ZN2yb5tools7helpers9ToCStringENS1_7TableOpE Unexecuted instantiation: _ZN2yb9ToCStringENS_18TaskStreamRunStateE Unexecuted instantiation: _ZN2yb3cdc9ToCStringENS0_6OpTypeE _ZN2yb9consensus9ToCStringENS0_12ElectionModeE Line | Count | Source | 92 | 76.7k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 76.7k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 76.7k | } \ | 96 | 0 | return nullptr; \ | 97 | 76.7k | } \ |
_ZN2yb9consensus9ToCStringENS0_17StateChangeReasonE Line | Count | Source | 92 | 269k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 269k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 269k | } \ | 96 | 0 | return nullptr; \ | 97 | 269k | } \ |
Unexecuted instantiation: _ZN2yb9consensus9ToCStringENS0_10RejectModeE _ZN2yb9consensus9ToCStringENS0_20LeaderLeaseCheckModeE Line | Count | Source | 92 | 2.43k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 2.43k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 2.43k | } \ | 96 | 0 | return nullptr; \ | 97 | 2.43k | } \ |
Unexecuted instantiation: _ZN2yb11redisserver9ToCStringENS0_14RedisReplyTypeE Unexecuted instantiation: _ZN2yb3log9ToCStringENS0_22SegmentAllocationStateE _ZN2yb6server9ToCStringENS0_18MonitoredTaskStateE Line | Count | Source | 92 | 208k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 208k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 208k | } \ | 96 | 0 | return nullptr; \ | 97 | 208k | } \ |
Unexecuted instantiation: _ZN2yb6master9ToCStringENS0_16TServersViewTypeE Unexecuted instantiation: _ZN2yb6master9ToCStringENS0_29SnapshotScheduleOperationTypeE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_19ToCStringENS1_5BoundE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_19ToCStringENS1_12RestorePhaseE Unexecuted instantiation: _ZN2yb9ToCStringENS_12OpIdPBFieldsE Unexecuted instantiation: _ZN2yb6client9ToCStringENS0_11WriteOpTypeE audit_logger.cc:_ZN2yb2ql5audit12_GLOBAL__N_19ToCStringENS2_8CategoryE Line | Count | Source | 92 | 10.7k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 10.7k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 10.7k | } \ | 96 | 0 | return nullptr; \ | 97 | 10.7k | } \ |
Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_19ConnectionDirectionE Unexecuted instantiation: pt_select.cc:_ZN2yb2ql12_GLOBAL__N_19ToCStringENS1_13OpSelectivityE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_19UpdateUserValueTypeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_10FlushStateE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_10BgTaskTypeE Unexecuted instantiation: _ZN7rocksdb9ToCStringENS_11TimeoutCodeE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_20RemoteMethodPBFieldsE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_19RequestHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_20ResponseHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_19ErrorStatusPBFieldsE _ZN2yb6server9ToCStringENS0_17SecureContextTypeE Line | Count | Source | 92 | 16.1k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 16.1k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 16.1k | } \ | 96 | 0 | return nullptr; \ | 97 | 16.1k | } \ |
Unexecuted instantiation: _ZN2yb9consensus9ToCStringENS0_12LeaderStatusE Unexecuted instantiation: _ZN2yb9ToCStringENS_19TransactionLoadFlagE Unexecuted instantiation: _ZN2yb9ToCStringENS_11CleanupTypeE Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_12RemoveReasonE Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_22UpdateAbortCheckHTModeE _ZN2yb6tablet9ToCStringENS0_13OperationTypeE Line | Count | Source | 92 | 8 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 8 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 8 | } \ | 96 | 0 | return nullptr; \ | 97 | 8 | } \ |
Unexecuted instantiation: _ZN2yb6tablet9ToCStringENS0_14SafeTimeSourceE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_17TransactionDumpOpE Unexecuted instantiation: _ZN2yb7tserver9ToCStringENS0_13TabletDirTypeE Unexecuted instantiation: _ZN2yb6client8internal9ToCStringENS1_12BatcherStateE _ZN2yb6client9ToCStringENS0_15ClientErrorCodeE Line | Count | Source | 92 | 3 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 3 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 3 | } \ | 96 | 0 | return nullptr; \ | 97 | 3 | } \ |
Unexecuted instantiation: _ZN2yb11redisserver9ToCStringENS0_15RedisClientModeE Unexecuted instantiation: redis_service.cc:_ZN2yb11redisserver12_GLOBAL__N_19ToCStringENS1_13OperationTypeE Unexecuted instantiation: _ZN2yb6client8internal9ToCStringENS1_12BatcherStateE transaction.cc:_ZN2yb6client12_GLOBAL__N_19ToCStringENS1_16TransactionStateE Line | Count | Source | 92 | 2.42k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 2.42k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 2.42k | } \ | 96 | 0 | return nullptr; \ | 97 | 2.42k | } \ |
Unexecuted instantiation: _ZN2yb6client9ToCStringENS0_13MetadataStateE _ZN2yb9ToCStringENS_16UsePrivateIpModeE Line | Count | Source | 92 | 2.35M | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 2.35M | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 2.35M | } \ | 96 | 0 | return nullptr; \ | 97 | 2.35M | } \ |
Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_19ResolvedIntentStateE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_9DirectionE Unexecuted instantiation: _ZN2yb5docdb9ToCStringENS0_18InitMarkerBehaviorE Unexecuted instantiation: cql_operation.cc:_ZN2yb5docdb12_GLOBAL__N_19ToCStringENS1_10ValueStateE Unexecuted instantiation: transaction_status_cache.cc:_ZN2yb5docdb12_GLOBAL__N_19ToCStringENS1_16CommitTimeSourceE Unexecuted instantiation: _ZN2yb6pggate9ToCStringENS0_16PgIsolationLevelE Unexecuted instantiation: _ZN2yb9pgwrapper9ToCStringENS0_14PgProcessStateE Unexecuted instantiation: _ZN2yb9ToCStringENS_15SubprocessStateE Unexecuted instantiation: _ZN2yb9ToCStringENS_20SubprocessStreamModeE priority_thread_pool.cc:_ZN2yb12_GLOBAL__N_19ToCStringENS0_27PriorityThreadPoolTaskStateE Line | Count | Source | 92 | 905 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 905 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 905 | } \ | 96 | 0 | return nullptr; \ | 97 | 905 | } \ |
Unexecuted instantiation: stack_trace.cc:_ZN2yb12_GLOBAL__N_19ToCStringENS0_16ThreadStackStateE Unexecuted instantiation: _ZN2yb9ToCStringENS_20ThreadPoolTokenStateE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_13TransferStateE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_16MarkAsDoneResultE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_12ReactorStateE Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_19ConnectionDirectionE _ZN2yb3rpc9ToCStringENS0_18RefinedStreamStateE Line | Count | Source | 92 | 189 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 189 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 189 | } \ | 96 | 0 | return nullptr; \ | 97 | 189 | } \ |
Unexecuted instantiation: _ZN2yb3rpc9ToCStringENS0_9LocalSideE _ZN2yb3rpc9ToCStringENS0_15RpcRetrierStateE Line | Count | Source | 92 | 56.2k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 56.2k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 56.2k | } \ | 96 | 0 | return nullptr; \ | 97 | 56.2k | } \ |
|
98 | | \ |
99 | 781k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ |
100 | 781k | const char* c_str = ToCString(value); \ |
101 | 781k | if (c_str != nullptr) \ |
102 | 780k | return c_str; \ |
103 | 462 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ |
104 | 462 | std::to_string(::yb::to_underlying(value)) + ">"; \ |
105 | 781k | } \ Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_7KeyTypeE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_13StorageDbTypeE Unexecuted instantiation: _ZN2yb5tools8ToStringENS0_17DataPatcherActionE Unexecuted instantiation: _ZN2yb8ToStringENS_19TransactionLoadFlagE Unexecuted instantiation: _ZN2yb8ToStringENS_11CleanupTypeE Unexecuted instantiation: _ZN2yb9consensus8ToStringENS0_12LeaderStatusE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_19UpdateUserValueTypeE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_24FrontierModificationModeE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_22KeyValueEncodingFormatE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_13OperationKindE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_14IntentStrengthE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_12FlushAbilityE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_9IndexTypeE Unexecuted instantiation: _ZN2yb6client8ToStringENS0_24GrantRevokeStatementTypeE Unexecuted instantiation: _ZN2yb6tablet8ToStringENS0_9FlushModeE Unexecuted instantiation: _ZN2yb6tablet8ToStringENS0_12RequireLeaseE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_9BoundTypeE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_15ListExtendOrderE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_20UpdateBoundariesTypeE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_10FlushStateE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_10InsertFlagE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_9BlockTypeE Unexecuted instantiation: _ZN2yb8ToStringENS_18BinaryOutputFormatE Unexecuted instantiation: _ZN2yb8ToStringENS_20ThreadPoolTokenStateE Unexecuted instantiation: _ZN2yb5tools8ToStringENS0_8FileTypeE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_14FilterDecisionE Unexecuted instantiation: _ZN2yb6master8ToStringENS0_11CollectFlagE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_15ServicePriorityE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_18InvokeCallbackModeE Unexecuted instantiation: _ZN2yb6client8ToStringENS0_7OpGroupE Unexecuted instantiation: _ZN2yb8ToStringENS_16UsePrivateIpModeE Unexecuted instantiation: _ZN2yb3log8ToStringENS0_22SegmentAllocationStateE Unexecuted instantiation: _ZN2yb8ToStringENS_9StdFdTypeE Unexecuted instantiation: _ZN2yb8ToStringENS_15SubprocessStateE Unexecuted instantiation: _ZN2yb8ToStringENS_20SubprocessStreamModeE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_12OutputFormatE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_18ToStringENS1_16ListTabletsFlagsE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_18ToStringENS1_10AddIndexesE _ZN2yb5tools10enterprise8ToStringENS1_17ListSnapshotsFlagE Line | Count | Source | 99 | 4 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 4 | const char* c_str = ToCString(value); \ | 101 | 4 | if (c_str != nullptr) \ | 102 | 4 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 4 | } \ |
Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_10DocKeyPartE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_15GetDocPathsModeE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_16DocOperationTypeE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_19ResolvedIntentStateE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_9DirectionE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_20SeekIntentIterNeededE Unexecuted instantiation: _ZN2yb8ToStringENS_15StackTraceGroupE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_12ResolveStateE Unexecuted instantiation: _ZN2yb8ToStringENS_19WriteBatchFieldKindE Unexecuted instantiation: _ZN2yb8ToStringENS_22WriteBatchOutputFormatE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_18InitMarkerBehaviorE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_13TransferStateE Unexecuted instantiation: _ZN2yb9pgwrapper8ToStringENS0_14PgProcessStateE Unexecuted instantiation: _ZN2yb7tserver8ToStringENS0_13TabletDirTypeE Unexecuted instantiation: _ZN2yb8ToStringENS_15ListPeersFilterE Unexecuted instantiation: _ZN2yb8ToStringENS_12ConnectivityE Unexecuted instantiation: _ZN2yb4bfql8ToStringENS0_17ConvertDecimalViaE _ZN2yb8ToStringENS_20TransactionErrorCodeE Line | Count | Source | 99 | 136k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 136k | const char* c_str = ToCString(value); \ | 101 | 136k | if (c_str != nullptr) \ | 102 | 136k | return c_str; \ | 103 | 3 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 3 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 136k | } \ |
Unexecuted instantiation: _ZN2yb6client8ToStringENS0_11WriteOpTypeE Unexecuted instantiation: _ZN2yb6tablet8ToStringENS0_14SafeTimeSourceE Unexecuted instantiation: _ZN2yb6tablet8ToStringENS0_25CreateIntentsCheckpointInE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_15BackoffStrategyE Unexecuted instantiation: _ZN2yb6master8ToStringENS0_13GetTablesModeE Unexecuted instantiation: _ZN2yb9consensus8ToStringENS0_10RejectModeE Unexecuted instantiation: _ZN2yb6client8ToStringENS0_18BankAccountsOptionE _ZN2yb9consensus8ToStringENS0_12ElectionVoteE Line | Count | Source | 99 | 2 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 2 | const char* c_str = ToCString(value); \ | 101 | 2 | if (c_str != nullptr) \ | 102 | 2 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 2 | } \ |
_ZN2yb9consensus8ToStringENS0_18RequestTriggerModeE Line | Count | Source | 99 | 1 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 1 | const char* c_str = ToCString(value); \ | 101 | 1 | if (c_str != nullptr) \ | 102 | 1 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 1 | } \ |
Unexecuted instantiation: _ZN2yb9consensus8ToStringENS0_40SetMajorityReplicatedLeaseExpirationFlagE Unexecuted instantiation: _ZN2yb9consensus8ToStringENS0_13OperationModeE Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_9TestDocDbE _ZN2yb5docdb8ToStringENS0_22RateLimiterSharingModeE Line | Count | Source | 99 | 2 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 2 | const char* c_str = ToCString(value); \ | 101 | 2 | if (c_str != nullptr) \ | 102 | 2 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 2 | } \ |
_ZN2yb5docdb8ToStringENS0_10IntentTypeE Line | Count | Source | 99 | 188 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 188 | const char* c_str = ToCString(value); \ | 101 | 188 | if (c_str != nullptr) \ | 102 | 188 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 188 | } \ |
_ZN2yb5docdb8ToStringENS0_9ValueTypeE Line | Count | Source | 99 | 9 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 9 | const char* c_str = ToCString(value); \ | 101 | 9 | if (c_str != nullptr) \ | 102 | 1 | return c_str; \ | 103 | 8 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 8 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 9 | } \ |
Unexecuted instantiation: _ZN2yb14load_generator8ToStringENS0_10ReadStatusE Unexecuted instantiation: _ZN2yb14load_generator8ToStringENS0_25MultiThreadedReaderOptionE Unexecuted instantiation: _ZN2yb6master10enterprise8ToStringENS1_13CreateObjectsE Unexecuted instantiation: _ZN2yb6master8ToStringENS0_16TServersViewTypeE _ZN2yb6client13kv_table_test8ToStringENS1_12PartitioningE Line | Count | Source | 99 | 164 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 164 | const char* c_str = ToCString(value); \ | 101 | 164 | if (c_str != nullptr) \ | 102 | 164 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 164 | } \ |
Unexecuted instantiation: geo_transactions-test.cc:_ZN2yb6client12_GLOBAL__N_18ToStringENS1_16ExpectedLocalityE Unexecuted instantiation: _ZN2yb9pgwrapper8ToStringENS0_14IndexStateFlagE Unexecuted instantiation: pg_mini-test.cc:_ZN2yb9pgwrapper12_GLOBAL__N_18ToStringENS1_13TestStatementE Unexecuted instantiation: _ZN2yb9pgwrapper8ToStringENS0_17FlushOrCompactionE Unexecuted instantiation: _ZN2yb2ql8ToStringENS0_14TreeNodeOpcodeE Unexecuted instantiation: _ZN2yb11redisserver8ToStringENS0_14RedisReplyTypeE Unexecuted instantiation: _ZN2yb11redisserver8ToStringENS0_10SubOrUnsubE Unexecuted instantiation: _ZN2yb11redisserver8ToStringENS0_16PatternOrChannelE Unexecuted instantiation: _ZN2yb11redisserver8ToStringENS0_14LocalOrClusterE _ZN7rocksdb8ToStringENS_26BuilderReaderBloomTestTypeE Line | Count | Source | 99 | 54 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 54 | const char* c_str = ToCString(value); \ | 101 | 54 | if (c_str != nullptr) \ | 102 | 54 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 54 | } \ |
Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_16MarkAsDoneResultE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_12ReactorStateE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_9AnyFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_18AddRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_25AddRequestPartialPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_19AddResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_20SleepRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_26SendStringsRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_19EchoRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_20EchoResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_22WhoAmIResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_21CalculatorErrorFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_19PingRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_20PingResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_22ForwardRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_23ForwardResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_21ConcatRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_22ConcatResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_29LightweightSubMessagePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_23LightweightPairPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_44LightweightRequestPB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_26LightweightRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_45LightweightResponsePB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_27LightweightResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_22TrivialRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_20TrivialErrorPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test8ToStringENS0_23TrivialResponsePBFieldsE Unexecuted instantiation: _ZN2yb5tools8ToStringENS0_8KeyStateE Unexecuted instantiation: _ZN2yb5tools7helpers8ToStringENS1_7TableOpE Unexecuted instantiation: _ZN2yb8ToStringENS_18TaskStreamRunStateE Unexecuted instantiation: _ZN2yb3cdc8ToStringENS0_6OpTypeE _ZN2yb9consensus8ToStringENS0_12ElectionModeE Line | Count | Source | 99 | 76.8k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 76.8k | const char* c_str = ToCString(value); \ | 101 | 76.8k | if (c_str != nullptr) \ | 102 | 76.7k | return c_str; \ | 103 | 40 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 40 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 76.8k | } \ |
_ZN2yb9consensus8ToStringENS0_17StateChangeReasonE Line | Count | Source | 99 | 269k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 269k | const char* c_str = ToCString(value); \ | 101 | 269k | if (c_str != nullptr) \ | 102 | 269k | return c_str; \ | 103 | 134 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 134 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 269k | } \ |
_ZN2yb9consensus8ToStringENS0_20LeaderLeaseCheckModeE Line | Count | Source | 99 | 2.43k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 2.43k | const char* c_str = ToCString(value); \ | 101 | 2.43k | if (c_str != nullptr) \ | 102 | 2.43k | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 2.43k | } \ |
_ZN2yb6server8ToStringENS0_18MonitoredTaskStateE Line | Count | Source | 99 | 208k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 208k | const char* c_str = ToCString(value); \ | 101 | 208k | if (c_str != nullptr) \ | 102 | 208k | return c_str; \ | 103 | 269 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 269 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 208k | } \ |
Unexecuted instantiation: _ZN2yb6master8ToStringENS0_29SnapshotScheduleOperationTypeE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_18ToStringENS1_5BoundE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_18ToStringENS1_12RestorePhaseE Unexecuted instantiation: _ZN2yb8ToStringENS_12OpIdPBFieldsE audit_logger.cc:_ZN2yb2ql5audit12_GLOBAL__N_18ToStringENS2_8CategoryE Line | Count | Source | 99 | 10.7k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 10.7k | const char* c_str = ToCString(value); \ | 101 | 10.7k | if (c_str != nullptr) \ | 102 | 10.7k | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 10.7k | } \ |
Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_19ConnectionDirectionE Unexecuted instantiation: pt_select.cc:_ZN2yb2ql12_GLOBAL__N_18ToStringENS1_13OpSelectivityE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_10BgTaskTypeE Unexecuted instantiation: _ZN7rocksdb8ToStringENS_11TimeoutCodeE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_20RemoteMethodPBFieldsE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_19RequestHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_20ResponseHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_19ErrorStatusPBFieldsE _ZN2yb6server8ToStringENS0_17SecureContextTypeE Line | Count | Source | 99 | 16.1k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 16.1k | const char* c_str = ToCString(value); \ | 101 | 16.1k | if (c_str != nullptr) \ | 102 | 16.1k | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 16.1k | } \ |
Unexecuted instantiation: _ZN2yb6tablet8ToStringENS0_12RemoveReasonE Unexecuted instantiation: _ZN2yb6tablet8ToStringENS0_22UpdateAbortCheckHTModeE _ZN2yb6tablet8ToStringENS0_13OperationTypeE Line | Count | Source | 99 | 8 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 8 | const char* c_str = ToCString(value); \ | 101 | 8 | if (c_str != nullptr) \ | 102 | 8 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 8 | } \ |
Unexecuted instantiation: _ZN2yb5docdb8ToStringENS0_17TransactionDumpOpE Unexecuted instantiation: _ZN2yb6client8internal8ToStringENS1_12BatcherStateE _ZN2yb6client8ToStringENS0_15ClientErrorCodeE Line | Count | Source | 99 | 3 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 3 | const char* c_str = ToCString(value); \ | 101 | 3 | if (c_str != nullptr) \ | 102 | 3 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 3 | } \ |
Unexecuted instantiation: _ZN2yb11redisserver8ToStringENS0_15RedisClientModeE Unexecuted instantiation: redis_service.cc:_ZN2yb11redisserver12_GLOBAL__N_18ToStringENS1_13OperationTypeE transaction.cc:_ZN2yb6client12_GLOBAL__N_18ToStringENS1_16TransactionStateE Line | Count | Source | 99 | 2.42k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 2.42k | const char* c_str = ToCString(value); \ | 101 | 2.42k | if (c_str != nullptr) \ | 102 | 2.42k | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 2.42k | } \ |
Unexecuted instantiation: _ZN2yb6client8ToStringENS0_13MetadataStateE Unexecuted instantiation: cql_operation.cc:_ZN2yb5docdb12_GLOBAL__N_18ToStringENS1_10ValueStateE Unexecuted instantiation: transaction_status_cache.cc:_ZN2yb5docdb12_GLOBAL__N_18ToStringENS1_16CommitTimeSourceE Unexecuted instantiation: _ZN2yb6pggate8ToStringENS0_16PgIsolationLevelE priority_thread_pool.cc:_ZN2yb12_GLOBAL__N_18ToStringENS0_27PriorityThreadPoolTaskStateE Line | Count | Source | 99 | 905 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 905 | const char* c_str = ToCString(value); \ | 101 | 905 | if (c_str != nullptr) \ | 102 | 905 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 905 | } \ |
Unexecuted instantiation: stack_trace.cc:_ZN2yb12_GLOBAL__N_18ToStringENS0_16ThreadStackStateE _ZN2yb3rpc8ToStringENS0_18RefinedStreamStateE Line | Count | Source | 99 | 189 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 189 | const char* c_str = ToCString(value); \ | 101 | 189 | if (c_str != nullptr) \ | 102 | 189 | return c_str; \ | 103 | 0 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 189 | } \ |
Unexecuted instantiation: _ZN2yb3rpc8ToStringENS0_9LocalSideE _ZN2yb3rpc8ToStringENS0_15RpcRetrierStateE Line | Count | Source | 99 | 56.2k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 56.2k | const char* c_str = ToCString(value); \ | 101 | 56.2k | if (c_str != nullptr) \ | 102 | 56.2k | return c_str; \ | 103 | 8 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 8 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 56.2k | } \ |
|
106 | 365k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ |
107 | 365k | return out << ToString(value); \ |
108 | 365k | } \ Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_7KeyTypeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13StorageDbTypeE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_19TransactionLoadFlagE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_11CleanupTypeE Unexecuted instantiation: _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12LeaderStatusE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_19UpdateUserValueTypeE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_24FrontierModificationModeE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_22KeyValueEncodingFormatE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13OperationKindE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14IntentStrengthE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_12FlushAbilityE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_9IndexTypeE Unexecuted instantiation: _ZN2yb6clientlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_24GrantRevokeStatementTypeE Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9FlushModeE Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12RequireLeaseE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22RateLimiterSharingModeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9BoundTypeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15ListExtendOrderE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_20UpdateBoundariesTypeE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_10FlushStateE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_10InsertFlagE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_9BlockTypeE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_18BinaryOutputFormatE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_20ThreadPoolTokenStateE Unexecuted instantiation: _ZN2yb5toolslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_17DataPatcherActionE Unexecuted instantiation: _ZN2yb5toolslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_8FileTypeE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_14FilterDecisionE Unexecuted instantiation: _ZN2yb6masterlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_11CollectFlagE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15ServicePriorityE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18InvokeCallbackModeE Unexecuted instantiation: _ZN2yb6clientlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_7OpGroupE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_16UsePrivateIpModeE Unexecuted instantiation: _ZN2yb3loglsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22SegmentAllocationStateE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_9StdFdTypeE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_15SubprocessStateE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_20SubprocessStreamModeE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_12OutputFormatE Unexecuted instantiation: _ZN2yb5tools10enterpriselsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_17ListSnapshotsFlagE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_10AddIndexesE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_16ListTabletsFlagsE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_10DocKeyPartE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15GetDocPathsModeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_16DocOperationTypeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19ResolvedIntentStateE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9DirectionE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20SeekIntentIterNeededE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_15StackTraceGroupE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12ResolveStateE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_19WriteBatchFieldKindE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_22WriteBatchOutputFormatE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18InitMarkerBehaviorE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13TransferStateE Unexecuted instantiation: _ZN2yb9pgwrapperlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14PgProcessStateE Unexecuted instantiation: _ZN2yb7tserverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13TabletDirTypeE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_15ListPeersFilterE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_12ConnectivityE Unexecuted instantiation: _ZN2yb4bfqllsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_17ConvertDecimalViaE Unexecuted instantiation: _ZN2yb6clientlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_11WriteOpTypeE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_20TransactionErrorCodeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_10IntentTypeE Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14SafeTimeSourceE Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13OperationTypeE Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_25CreateIntentsCheckpointInE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15RpcRetrierStateE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15BackoffStrategyE Unexecuted instantiation: _ZN2yb6masterlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13GetTablesModeE Unexecuted instantiation: _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_10RejectModeE Unexecuted instantiation: _ZN2yb6clientlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18BankAccountsOptionE Unexecuted instantiation: _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12ElectionVoteE Unexecuted instantiation: _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20LeaderLeaseCheckModeE _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18RequestTriggerModeE Line | Count | Source | 106 | 1 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 1 | return out << ToString(value); \ | 108 | 1 | } \ |
Unexecuted instantiation: _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_40SetMajorityReplicatedLeaseExpirationFlagE Unexecuted instantiation: _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13OperationModeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9TestDocDbE _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9ValueTypeE Line | Count | Source | 106 | 1 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 1 | return out << ToString(value); \ | 108 | 1 | } \ |
Unexecuted instantiation: _ZN2yb14load_generatorlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_10ReadStatusE Unexecuted instantiation: _ZN2yb14load_generatorlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_25MultiThreadedReaderOptionE Unexecuted instantiation: _ZN2yb6master10enterpriselsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_13CreateObjectsE Unexecuted instantiation: _ZN2yb6masterlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_16TServersViewTypeE _ZN2yb6client13kv_table_testlsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_12PartitioningE Line | Count | Source | 106 | 82 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 82 | return out << ToString(value); \ | 108 | 82 | } \ |
Unexecuted instantiation: geo_transactions-test.cc:_ZN2yb6client12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_16ExpectedLocalityE Unexecuted instantiation: _ZN2yb9pgwrapperlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14IndexStateFlagE Unexecuted instantiation: pg_mini-test.cc:_ZN2yb9pgwrapper12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_13TestStatementE Unexecuted instantiation: _ZN2yb9pgwrapperlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_17FlushOrCompactionE Unexecuted instantiation: _ZN2yb2qllsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14TreeNodeOpcodeE Unexecuted instantiation: _ZN2yb11redisserverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14RedisReplyTypeE Unexecuted instantiation: _ZN2yb11redisserverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_10SubOrUnsubE Unexecuted instantiation: _ZN2yb11redisserverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_16PatternOrChannelE Unexecuted instantiation: _ZN2yb11redisserverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_14LocalOrClusterE _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_26BuilderReaderBloomTestTypeE Line | Count | Source | 106 | 54 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 54 | return out << ToString(value); \ | 108 | 54 | } \ |
Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_16MarkAsDoneResultE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12ReactorStateE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9AnyFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18AddRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_25AddRequestPartialPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19AddResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20SleepRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_26SendStringsRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19EchoRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20EchoResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22WhoAmIResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_21CalculatorErrorFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19PingRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20PingResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22ForwardRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_23ForwardResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_21ConcatRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22ConcatResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_29LightweightSubMessagePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_23LightweightPairPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_44LightweightRequestPB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_26LightweightRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_45LightweightResponsePB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_27LightweightResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22TrivialRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20TrivialErrorPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_testlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_23TrivialResponsePBFieldsE Unexecuted instantiation: _ZN2yb5toolslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_8KeyStateE Unexecuted instantiation: _ZN2yb5tools7helperslsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_7TableOpE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_18TaskStreamRunStateE Unexecuted instantiation: _ZN2yb3cdclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_6OpTypeE _ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12ElectionModeE Line | Count | Source | 106 | 76.7k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 76.7k | return out << ToString(value); \ | 108 | 76.7k | } \ |
_ZN2yb9consensuslsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_17StateChangeReasonE Line | Count | Source | 106 | 269k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 269k | return out << ToString(value); \ | 108 | 269k | } \ |
_ZN2yb6serverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18MonitoredTaskStateE Line | Count | Source | 106 | 11 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 11 | return out << ToString(value); \ | 108 | 11 | } \ |
Unexecuted instantiation: _ZN2yb6masterlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_29SnapshotScheduleOperationTypeE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_5BoundE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_12RestorePhaseE Unexecuted instantiation: _ZN2yblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_12OpIdPBFieldsE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19ConnectionDirectionE Unexecuted instantiation: audit_logger.cc:_ZN2yb2ql5audit12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS2_8CategoryE Unexecuted instantiation: pt_select.cc:_ZN2yb2ql12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_13OpSelectivityE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_10BgTaskTypeE Unexecuted instantiation: _ZN7rocksdblsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS_11TimeoutCodeE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20RemoteMethodPBFieldsE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19RequestHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_20ResponseHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_19ErrorStatusPBFieldsE _ZN2yb6serverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_17SecureContextTypeE Line | Count | Source | 106 | 16.1k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 16.1k | return out << ToString(value); \ | 108 | 16.1k | } \ |
Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_12RemoveReasonE Unexecuted instantiation: _ZN2yb6tabletlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_22UpdateAbortCheckHTModeE Unexecuted instantiation: _ZN2yb5docdblsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_17TransactionDumpOpE Unexecuted instantiation: _ZN2yb6client8internallsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_12BatcherStateE Unexecuted instantiation: _ZN2yb6clientlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15ClientErrorCodeE Unexecuted instantiation: _ZN2yb11redisserverlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_15RedisClientModeE Unexecuted instantiation: redis_service.cc:_ZN2yb11redisserver12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_13OperationTypeE transaction.cc:_ZN2yb6client12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_16TransactionStateE Line | Count | Source | 106 | 2.42k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 2.42k | return out << ToString(value); \ | 108 | 2.42k | } \ |
Unexecuted instantiation: _ZN2yb6clientlsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_13MetadataStateE Unexecuted instantiation: cql_operation.cc:_ZN2yb5docdb12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_10ValueStateE Unexecuted instantiation: transaction_status_cache.cc:_ZN2yb5docdb12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEENS1_16CommitTimeSourceE Unexecuted instantiation: _ZN2yb6pggatelsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_16PgIsolationLevelE Unexecuted instantiation: priority_thread_pool.cc:_ZN2yb12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_27PriorityThreadPoolTaskStateE Unexecuted instantiation: stack_trace.cc:_ZN2yb12_GLOBAL__N_1lsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_16ThreadStackStateE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_18RefinedStreamStateE Unexecuted instantiation: _ZN2yb3rpclsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS0_9LocalSideE |
109 | | \ |
110 | | constexpr __attribute__((unused)) size_t BOOST_PP_CAT(kElementsIn, enum_name) = \ |
111 | | BOOST_PP_SEQ_SIZE(list); \ |
112 | | constexpr __attribute__((unused)) size_t BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, MapSize)) = \ |
113 | | YB_ENUM_MAP_SIZE(enum_name, prefix, list); \ |
114 | | constexpr __attribute__((unused)) std::initializer_list<enum_name> \ |
115 | | BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)) = {\ |
116 | | YB_ENUM_ITEMS(enum_name, prefix, list) \ |
117 | | };\ |
118 | | /* Functions returning kEnumMapSize and kEnumList that could be used in templates. */ \ |
119 | 0 | constexpr __attribute__((unused)) size_t MapSize(enum_name*) { \ |
120 | 0 | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, MapSize)); \ |
121 | 0 | } \ Unexecuted instantiation: _ZN2yb7MapSizeEPNS_19TransactionLoadFlagE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_11CleanupTypeE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_12LeaderStatusE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_19UpdateUserValueTypeE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_24FrontierModificationModeE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_22KeyValueEncodingFormatE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_13OperationKindE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_14IntentStrengthE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_12FlushAbilityE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_9IndexTypeE Unexecuted instantiation: _ZN2yb6client7MapSizeEPNS0_24GrantRevokeStatementTypeE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_9FlushModeE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_12RequireLeaseE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_22RateLimiterSharingModeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_13StorageDbTypeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_7KeyTypeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_9BoundTypeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_9ValueTypeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_15ListExtendOrderE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_20UpdateBoundariesTypeE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_10FlushStateE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_10InsertFlagE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_9BlockTypeE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_18BinaryOutputFormatE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_20ThreadPoolTokenStateE Unexecuted instantiation: _ZN2yb5tools7MapSizeEPNS0_17DataPatcherActionE Unexecuted instantiation: _ZN2yb5tools7MapSizeEPNS0_8FileTypeE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_14FilterDecisionE Unexecuted instantiation: _ZN2yb6master7MapSizeEPNS0_11CollectFlagE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_15ServicePriorityE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_18InvokeCallbackModeE Unexecuted instantiation: _ZN2yb6client7MapSizeEPNS0_7OpGroupE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_16UsePrivateIpModeE Unexecuted instantiation: _ZN2yb3log7MapSizeEPNS0_22SegmentAllocationStateE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_9StdFdTypeE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_15SubprocessStateE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_20SubprocessStreamModeE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_12OutputFormatE Unexecuted instantiation: _ZN2yb6server7MapSizeEPNS0_17SecureContextTypeE Unexecuted instantiation: _ZN2yb5tools10enterprise7MapSizeEPNS1_17ListSnapshotsFlagE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_17MapSizeEPNS1_10AddIndexesE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_17MapSizeEPNS1_16ListTabletsFlagsE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_10DocKeyPartE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_15GetDocPathsModeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_16DocOperationTypeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_19ResolvedIntentStateE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_9DirectionE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_20SeekIntentIterNeededE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_15StackTraceGroupE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_12ResolveStateE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_19WriteBatchFieldKindE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_22WriteBatchOutputFormatE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_18InitMarkerBehaviorE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_13TransferStateE Unexecuted instantiation: _ZN2yb9pgwrapper7MapSizeEPNS0_14PgProcessStateE Unexecuted instantiation: _ZN2yb7tserver7MapSizeEPNS0_13TabletDirTypeE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_15ListPeersFilterE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_12ConnectivityE Unexecuted instantiation: _ZN2yb4bfql7MapSizeEPNS0_17ConvertDecimalViaE Unexecuted instantiation: _ZN2yb6client7MapSizeEPNS0_11WriteOpTypeE Unexecuted instantiation: _ZN2yb6client13kv_table_test7MapSizeEPNS1_12PartitioningE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_20TransactionErrorCodeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_10IntentTypeE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_14SafeTimeSourceE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_13OperationTypeE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_25CreateIntentsCheckpointInE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_15RpcRetrierStateE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_15BackoffStrategyE Unexecuted instantiation: _ZN2yb6master7MapSizeEPNS0_13GetTablesModeE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_12ElectionModeE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_17StateChangeReasonE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_10RejectModeE Unexecuted instantiation: _ZN2yb6server7MapSizeEPNS0_18MonitoredTaskStateE Unexecuted instantiation: _ZN2yb6client7MapSizeEPNS0_18BankAccountsOptionE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_18RequestTriggerModeE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_20LeaderLeaseCheckModeE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_12ElectionVoteE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_40SetMajorityReplicatedLeaseExpirationFlagE Unexecuted instantiation: _ZN2yb9consensus7MapSizeEPNS0_13OperationModeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_9TestDocDbE Unexecuted instantiation: _ZN2yb14load_generator7MapSizeEPNS0_10ReadStatusE Unexecuted instantiation: _ZN2yb14load_generator7MapSizeEPNS0_25MultiThreadedReaderOptionE Unexecuted instantiation: _ZN2yb6master10enterprise7MapSizeEPNS1_13CreateObjectsE Unexecuted instantiation: _ZN2yb6master7MapSizeEPNS0_16TServersViewTypeE Unexecuted instantiation: geo_transactions-test.cc:_ZN2yb6client12_GLOBAL__N_17MapSizeEPNS1_16ExpectedLocalityE Unexecuted instantiation: _ZN2yb9pgwrapper7MapSizeEPNS0_14IndexStateFlagE Unexecuted instantiation: pg_mini-test.cc:_ZN2yb9pgwrapper12_GLOBAL__N_17MapSizeEPNS1_13TestStatementE Unexecuted instantiation: _ZN2yb9pgwrapper7MapSizeEPNS0_17FlushOrCompactionE Unexecuted instantiation: _ZN2yb2ql7MapSizeEPNS0_14TreeNodeOpcodeE Unexecuted instantiation: _ZN2yb11redisserver7MapSizeEPNS0_14RedisReplyTypeE Unexecuted instantiation: _ZN2yb11redisserver7MapSizeEPNS0_10SubOrUnsubE Unexecuted instantiation: _ZN2yb11redisserver7MapSizeEPNS0_16PatternOrChannelE Unexecuted instantiation: _ZN2yb11redisserver7MapSizeEPNS0_14LocalOrClusterE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_26BuilderReaderBloomTestTypeE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_16MarkAsDoneResultE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_12ReactorStateE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_9AnyFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_18AddRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_25AddRequestPartialPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_19AddResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_20SleepRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_26SendStringsRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_19EchoRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_20EchoResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_22WhoAmIResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_21CalculatorErrorFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_19PingRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_20PingResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_22ForwardRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_23ForwardResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_21ConcatRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_22ConcatResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_29LightweightSubMessagePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_23LightweightPairPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_44LightweightRequestPB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_26LightweightRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_45LightweightResponsePB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_27LightweightResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_22TrivialRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_20TrivialErrorPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test7MapSizeEPNS0_23TrivialResponsePBFieldsE Unexecuted instantiation: _ZN2yb5tools7MapSizeEPNS0_8KeyStateE Unexecuted instantiation: _ZN2yb5tools7helpers7MapSizeEPNS1_7TableOpE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_18TaskStreamRunStateE Unexecuted instantiation: _ZN2yb3cdc7MapSizeEPNS0_6OpTypeE Unexecuted instantiation: _ZN2yb6master7MapSizeEPNS0_29SnapshotScheduleOperationTypeE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_17MapSizeEPNS1_5BoundE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_17MapSizeEPNS1_12RestorePhaseE Unexecuted instantiation: _ZN2yb7MapSizeEPNS_12OpIdPBFieldsE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_19ConnectionDirectionE Unexecuted instantiation: audit_logger.cc:_ZN2yb2ql5audit12_GLOBAL__N_17MapSizeEPNS2_8CategoryE Unexecuted instantiation: pt_select.cc:_ZN2yb2ql12_GLOBAL__N_17MapSizeEPNS1_13OpSelectivityE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_10BgTaskTypeE Unexecuted instantiation: _ZN7rocksdb7MapSizeEPNS_11TimeoutCodeE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_20RemoteMethodPBFieldsE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_19RequestHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_20ResponseHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_19ErrorStatusPBFieldsE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_12RemoveReasonE Unexecuted instantiation: _ZN2yb6tablet7MapSizeEPNS0_22UpdateAbortCheckHTModeE Unexecuted instantiation: _ZN2yb5docdb7MapSizeEPNS0_17TransactionDumpOpE Unexecuted instantiation: _ZN2yb6client8internal7MapSizeEPNS1_12BatcherStateE Unexecuted instantiation: _ZN2yb6client7MapSizeEPNS0_15ClientErrorCodeE Unexecuted instantiation: _ZN2yb11redisserver7MapSizeEPNS0_15RedisClientModeE Unexecuted instantiation: redis_service.cc:_ZN2yb11redisserver12_GLOBAL__N_17MapSizeEPNS1_13OperationTypeE Unexecuted instantiation: transaction.cc:_ZN2yb6client12_GLOBAL__N_17MapSizeEPNS1_16TransactionStateE Unexecuted instantiation: _ZN2yb6client7MapSizeEPNS0_13MetadataStateE Unexecuted instantiation: cql_operation.cc:_ZN2yb5docdb12_GLOBAL__N_17MapSizeEPNS1_10ValueStateE Unexecuted instantiation: transaction_status_cache.cc:_ZN2yb5docdb12_GLOBAL__N_17MapSizeEPNS1_16CommitTimeSourceE Unexecuted instantiation: _ZN2yb6pggate7MapSizeEPNS0_16PgIsolationLevelE Unexecuted instantiation: priority_thread_pool.cc:_ZN2yb12_GLOBAL__N_17MapSizeEPNS0_27PriorityThreadPoolTaskStateE Unexecuted instantiation: stack_trace.cc:_ZN2yb12_GLOBAL__N_17MapSizeEPNS0_16ThreadStackStateE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_18RefinedStreamStateE Unexecuted instantiation: _ZN2yb3rpc7MapSizeEPNS0_9LocalSideE |
122 | 4.69M | constexpr __attribute__((unused)) auto List(enum_name*) { \ |
123 | 4.69M | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ |
124 | 4.69M | } \ Unexecuted instantiation: _ZN2yb5tools4ListEPNS0_17DataPatcherActionE Unexecuted instantiation: _ZN2yb4ListEPNS_19TransactionLoadFlagE Unexecuted instantiation: _ZN2yb4ListEPNS_11CleanupTypeE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_12LeaderStatusE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_19UpdateUserValueTypeE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_24FrontierModificationModeE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_22KeyValueEncodingFormatE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_13OperationKindE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_14IntentStrengthE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_12FlushAbilityE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_9IndexTypeE Unexecuted instantiation: _ZN2yb6client4ListEPNS0_24GrantRevokeStatementTypeE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_9FlushModeE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_12RequireLeaseE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_13StorageDbTypeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_7KeyTypeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_9BoundTypeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_9ValueTypeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_15ListExtendOrderE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_20UpdateBoundariesTypeE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_10FlushStateE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_10InsertFlagE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_9BlockTypeE Unexecuted instantiation: _ZN2yb4ListEPNS_18BinaryOutputFormatE Unexecuted instantiation: _ZN2yb4ListEPNS_20ThreadPoolTokenStateE Unexecuted instantiation: _ZN2yb5tools4ListEPNS0_8FileTypeE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_14FilterDecisionE Unexecuted instantiation: _ZN2yb6master4ListEPNS0_11CollectFlagE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_15ServicePriorityE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_18InvokeCallbackModeE Unexecuted instantiation: _ZN2yb6client4ListEPNS0_7OpGroupE Unexecuted instantiation: _ZN2yb4ListEPNS_16UsePrivateIpModeE Unexecuted instantiation: _ZN2yb3log4ListEPNS0_22SegmentAllocationStateE Unexecuted instantiation: _ZN2yb4ListEPNS_15SubprocessStateE Unexecuted instantiation: _ZN2yb4ListEPNS_20SubprocessStreamModeE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_12OutputFormatE Unexecuted instantiation: _ZN2yb6server4ListEPNS0_17SecureContextTypeE Unexecuted instantiation: _ZN2yb5tools10enterprise4ListEPNS1_17ListSnapshotsFlagE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_14ListEPNS1_10AddIndexesE Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb5tools12_GLOBAL__N_14ListEPNS1_16ListTabletsFlagsE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_10DocKeyPartE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_15GetDocPathsModeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_16DocOperationTypeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_19ResolvedIntentStateE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_9DirectionE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_20SeekIntentIterNeededE Unexecuted instantiation: _ZN2yb4ListEPNS_15StackTraceGroupE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_12ResolveStateE Unexecuted instantiation: _ZN2yb4ListEPNS_19WriteBatchFieldKindE Unexecuted instantiation: _ZN2yb4ListEPNS_22WriteBatchOutputFormatE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_18InitMarkerBehaviorE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_13TransferStateE Unexecuted instantiation: _ZN2yb9pgwrapper4ListEPNS0_14PgProcessStateE Unexecuted instantiation: _ZN2yb7tserver4ListEPNS0_13TabletDirTypeE Unexecuted instantiation: _ZN2yb4ListEPNS_15ListPeersFilterE Unexecuted instantiation: _ZN2yb4ListEPNS_12ConnectivityE Unexecuted instantiation: _ZN2yb4bfql4ListEPNS0_17ConvertDecimalViaE Unexecuted instantiation: _ZN2yb6client4ListEPNS0_11WriteOpTypeE Unexecuted instantiation: _ZN2yb4ListEPNS_20TransactionErrorCodeE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_14SafeTimeSourceE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_13OperationTypeE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_25CreateIntentsCheckpointInE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_15RpcRetrierStateE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_15BackoffStrategyE Unexecuted instantiation: _ZN2yb6master4ListEPNS0_13GetTablesModeE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_12ElectionModeE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_17StateChangeReasonE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_10RejectModeE Unexecuted instantiation: _ZN2yb6server4ListEPNS0_18MonitoredTaskStateE Unexecuted instantiation: _ZN2yb6client4ListEPNS0_18BankAccountsOptionE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_18RequestTriggerModeE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_20LeaderLeaseCheckModeE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_12ElectionVoteE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_40SetMajorityReplicatedLeaseExpirationFlagE Unexecuted instantiation: _ZN2yb9consensus4ListEPNS0_13OperationModeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_9TestDocDbE _ZN2yb5docdb4ListEPNS0_22RateLimiterSharingModeE Line | Count | Source | 122 | 5.81k | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 5.81k | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 5.81k | } \ |
_ZN2yb5docdb4ListEPNS0_10IntentTypeE Line | Count | Source | 122 | 4.69M | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 4.69M | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 4.69M | } \ |
Unexecuted instantiation: _ZN2yb14load_generator4ListEPNS0_10ReadStatusE Unexecuted instantiation: _ZN2yb14load_generator4ListEPNS0_25MultiThreadedReaderOptionE Unexecuted instantiation: _ZN2yb6master10enterprise4ListEPNS1_13CreateObjectsE Unexecuted instantiation: _ZN2yb6master4ListEPNS0_16TServersViewTypeE _ZN2yb6client13kv_table_test4ListEPNS1_12PartitioningE Line | Count | Source | 122 | 41 | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 41 | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 41 | } \ |
Unexecuted instantiation: geo_transactions-test.cc:_ZN2yb6client12_GLOBAL__N_14ListEPNS1_16ExpectedLocalityE Unexecuted instantiation: _ZN2yb9pgwrapper4ListEPNS0_14IndexStateFlagE Unexecuted instantiation: pg_mini-test.cc:_ZN2yb9pgwrapper12_GLOBAL__N_14ListEPNS1_13TestStatementE Unexecuted instantiation: _ZN2yb9pgwrapper4ListEPNS0_17FlushOrCompactionE Unexecuted instantiation: _ZN2yb2ql4ListEPNS0_14TreeNodeOpcodeE Unexecuted instantiation: _ZN2yb11redisserver4ListEPNS0_14RedisReplyTypeE Unexecuted instantiation: _ZN2yb11redisserver4ListEPNS0_10SubOrUnsubE Unexecuted instantiation: _ZN2yb11redisserver4ListEPNS0_16PatternOrChannelE Unexecuted instantiation: _ZN2yb11redisserver4ListEPNS0_14LocalOrClusterE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_26BuilderReaderBloomTestTypeE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_16MarkAsDoneResultE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_12ReactorStateE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_9AnyFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_18AddRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_25AddRequestPartialPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_19AddResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_20SleepRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_26SendStringsRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_19EchoRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_20EchoResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_22WhoAmIResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_21CalculatorErrorFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_19PingRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_20PingResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_22ForwardRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_23ForwardResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_21ConcatRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_22ConcatResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_29LightweightSubMessagePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_23LightweightPairPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_44LightweightRequestPB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_26LightweightRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_45LightweightResponsePB_MapEntry_DoNotUseFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_27LightweightResponsePBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_22TrivialRequestPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_20TrivialErrorPBFieldsE Unexecuted instantiation: _ZN2yb8rpc_test4ListEPNS0_23TrivialResponsePBFieldsE Unexecuted instantiation: _ZN2yb5tools4ListEPNS0_8KeyStateE Unexecuted instantiation: _ZN2yb5tools7helpers4ListEPNS1_7TableOpE Unexecuted instantiation: _ZN2yb4ListEPNS_18TaskStreamRunStateE Unexecuted instantiation: _ZN2yb3cdc4ListEPNS0_6OpTypeE Unexecuted instantiation: _ZN2yb6master4ListEPNS0_29SnapshotScheduleOperationTypeE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_14ListEPNS1_5BoundE Unexecuted instantiation: master_snapshot_coordinator.cc:_ZN2yb6master12_GLOBAL__N_14ListEPNS1_12RestorePhaseE Unexecuted instantiation: _ZN2yb4ListEPNS_12OpIdPBFieldsE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_19ConnectionDirectionE Unexecuted instantiation: audit_logger.cc:_ZN2yb2ql5audit12_GLOBAL__N_14ListEPNS2_8CategoryE Unexecuted instantiation: pt_select.cc:_ZN2yb2ql12_GLOBAL__N_14ListEPNS1_13OpSelectivityE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_10BgTaskTypeE Unexecuted instantiation: _ZN7rocksdb4ListEPNS_11TimeoutCodeE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_20RemoteMethodPBFieldsE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_19RequestHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_20ResponseHeaderFieldsE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_19ErrorStatusPBFieldsE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_12RemoveReasonE Unexecuted instantiation: _ZN2yb6tablet4ListEPNS0_22UpdateAbortCheckHTModeE Unexecuted instantiation: _ZN2yb5docdb4ListEPNS0_17TransactionDumpOpE Unexecuted instantiation: _ZN2yb6client8internal4ListEPNS1_12BatcherStateE Unexecuted instantiation: _ZN2yb6client4ListEPNS0_15ClientErrorCodeE Unexecuted instantiation: _ZN2yb11redisserver4ListEPNS0_15RedisClientModeE Unexecuted instantiation: redis_service.cc:_ZN2yb11redisserver12_GLOBAL__N_14ListEPNS1_13OperationTypeE Unexecuted instantiation: transaction.cc:_ZN2yb6client12_GLOBAL__N_14ListEPNS1_16TransactionStateE Unexecuted instantiation: _ZN2yb6client4ListEPNS0_13MetadataStateE Unexecuted instantiation: cql_operation.cc:_ZN2yb5docdb12_GLOBAL__N_14ListEPNS1_10ValueStateE Unexecuted instantiation: transaction_status_cache.cc:_ZN2yb5docdb12_GLOBAL__N_14ListEPNS1_16CommitTimeSourceE Unexecuted instantiation: _ZN2yb6pggate4ListEPNS0_16PgIsolationLevelE _ZN2yb4ListEPNS_9StdFdTypeE Line | Count | Source | 122 | 77 | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 77 | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 77 | } \ |
Unexecuted instantiation: priority_thread_pool.cc:_ZN2yb12_GLOBAL__N_14ListEPNS0_27PriorityThreadPoolTaskStateE Unexecuted instantiation: stack_trace.cc:_ZN2yb12_GLOBAL__N_14ListEPNS0_16ThreadStackStateE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_18RefinedStreamStateE Unexecuted instantiation: _ZN2yb3rpc4ListEPNS0_9LocalSideE |
125 | | /**/ |
126 | | |
127 | | // Please see the usage of YB_DEFINE_ENUM before the auxiliary macros above. |
128 | | #define YB_DEFINE_ENUM(enum_name, list) YB_DEFINE_ENUM_IMPL(enum_name, BOOST_PP_NIL, list) |
129 | | #define YB_DEFINE_ENUM_EX(enum_name, prefix, list) YB_DEFINE_ENUM_IMPL(enum_name, (prefix), list) |
130 | | |
131 | | // This macro can be used after exhaustive (compile-time-checked) switches on enums without a |
132 | | // default clause to handle invalid values due to memory corruption. |
133 | | // |
134 | | // switch (my_enum_value) { |
135 | | // case MyEnum::FOO: |
136 | | // // some handling |
137 | | // return; |
138 | | // . . . |
139 | | // case MyEnum::BAR: |
140 | | // // some handling |
141 | | // return; |
142 | | // } |
143 | | // FATAL_INVALID_ENUM_VALUE(MyEnum, my_enum_value); |
144 | | // |
145 | | // This uses a function marked with [[noreturn]] so that the compiler will not complain about |
146 | | // functions not returning a value. |
147 | | // |
148 | | // We need to specify the enum name because there does not seem to be an non-RTTI way to get |
149 | | // a type name string from a type in a template. |
150 | | #define FATAL_INVALID_ENUM_VALUE(enum_type, value_macro_arg) \ |
151 | 0 | do { \ |
152 | 0 | auto _value_copy = (value_macro_arg); \ |
153 | 0 | static_assert( \ |
154 | 0 | std::is_same<decltype(_value_copy), enum_type>::value, \ |
155 | 0 | "Type of enum value passed to FATAL_INVALID_ENUM_VALUE must be " \ |
156 | 0 | BOOST_PP_STRINGIZE(enum_type)); \ |
157 | 0 | ::yb::FatalInvalidEnumValueInternal( \ |
158 | 0 | BOOST_PP_STRINGIZE(enum_type), ::yb::GetTypeName<enum_type>(), std::string(), \ |
159 | 0 | ::yb::to_underlying(_value_copy), BOOST_PP_STRINGIZE(value_macro_arg), \ |
160 | 0 | __FILE__, __LINE__); \ |
161 | 0 | } while (0) |
162 | | |
163 | | #define FATAL_INVALID_PB_ENUM_VALUE(enum_type, value_macro_arg) \ |
164 | 0 | do { \ |
165 | 0 | auto _value_copy = (value_macro_arg); \ |
166 | 0 | static_assert( \ |
167 | 0 | std::is_same<decltype(_value_copy), enum_type>::value, \ |
168 | 0 | "Type of enum value passed to FATAL_INVALID_ENUM_VALUE must be " \ |
169 | 0 | BOOST_PP_STRINGIZE(enum_type)); \ |
170 | 0 | ::yb::FatalInvalidEnumValueInternal( \ |
171 | 0 | BOOST_PP_STRINGIZE(enum_type), ::yb::GetTypeName<enum_type>(), \ |
172 | 0 | BOOST_PP_CAT(enum_type, _Name)(_value_copy), ::yb::to_underlying(_value_copy), \ |
173 | 0 | BOOST_PP_STRINGIZE(value_macro_arg), __FILE__, __LINE__); \ |
174 | 0 | } while (0) |
175 | | |
176 | | template<typename T> |
177 | 0 | std::string GetTypeName() { |
178 | 0 | char const* type_name = typeid(T).name(); |
179 | 0 | boost::core::scoped_demangled_name type_name_demangled(type_name); |
180 | | |
181 | | // From https://stackoverflow.com/questions/1488186/stringifying-template-arguments: |
182 | 0 | return type_name_demangled.get() ? type_name_demangled.get() : type_name; |
183 | 0 | } Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5tools8FileTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_3Env8FileTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5tools17DataPatcherActionEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameIN7rocksdb22KeyValueEncodingFormatEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameIN7rocksdb19UpdateUserValueTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_8DataTypeEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb22RateLimiterSharingModeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameIN7rocksdb26BuilderReaderBloomTestTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9consensus13OperationTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9consensus12LeaderStatusEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9consensus16PeerMessageQueue4ModeEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9consensus16PeerMessageQueue5StateEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9consensus17LeaderLeaseStatusEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_15ListPeersFilterEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_12ConnectivityEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6master25SysNamespaceEntryPB_StateEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6master13GetTablesModeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6master24SysSnapshotEntryPB_StateEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_7tserver35TabletSnapshotOpRequestPB_OperationEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6master15SysRowEntryTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_14IsolationLevelEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client11WriteOpTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client13kv_table_test12PartitioningEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client24GrantRevokeStatementTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_2ql14TreeNodeOpcodeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameIN9rapidjson4TypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_21QLResponsePB_QLStatusEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameIN7rocksdb9BlockTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameIN7rocksdb12SubCacheTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_17TransactionStatusEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb13StorageDbTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9TableTypeEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6tablet13OperationTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6tablet10WriteQuery11ExecuteModeEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_7tserver20ReadTimeManipulationEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_7tserver13TabletDirTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: redis_service.cc:_ZN2yb11GetTypeNameINS_11redisserver12_GLOBAL__N_113OperationTypeEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client7OpGroupEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client15ClientErrorCodeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client8YBClient16ReplicaSelectionEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_6client11YBTableTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: transaction.cc:_ZN2yb11GetTypeNameINS_6client12_GLOBAL__N_116TransactionStateEEENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_19TransactionLocalityEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_9QLValuePB9ValueCaseEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb20SeekIntentIterNeededEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb7KeyTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb10DocKeyPartEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb9ValueTypeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_5docdb13OperationKindEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_18BinaryOutputFormatEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_19AggregationFunctionEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEv Unexecuted instantiation: priority_thread_pool.cc:_ZN2yb11GetTypeNameINS_12_GLOBAL__N_127PriorityThreadPoolTaskStateEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_3rpc15ServicePriorityEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_3rpc18InvokeCallbackModeEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv Unexecuted instantiation: _ZN2yb11GetTypeNameINS_3rpc18RefinedStreamStateEEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEv |
184 | | |
185 | | [[noreturn]] void FatalInvalidEnumValueInternal( |
186 | | const char* enum_name, |
187 | | const std::string& full_enum_name, |
188 | | const std::string& value_str, |
189 | | int64_t value, |
190 | | const char* expression_str, |
191 | | const char* fname, |
192 | | int line); |
193 | | |
194 | | struct EnumHash { |
195 | | template <class T> |
196 | 758k | size_t operator()(T t) const { |
197 | 758k | return to_underlying(t); |
198 | 758k | } Unexecuted instantiation: _ZNK2yb8EnumHashclIN7rocksdb22KeyValueEncodingFormatEEEmT_ _ZNK2yb8EnumHashclINS_2ql9ErrorCodeEEEmT_ Line | Count | Source | 196 | 758k | size_t operator()(T t) const { | 197 | 758k | return to_underlying(t); | 198 | 758k | } |
|
199 | | }; |
200 | | |
201 | | // ------------------------------------------------------------------------------------------------ |
202 | | // Enum bit set |
203 | | // ------------------------------------------------------------------------------------------------ |
204 | | |
205 | | template <class Enum> |
206 | | class EnumBitSetIterator { |
207 | | public: |
208 | | typedef typename decltype(List(static_cast<Enum*>(nullptr)))::const_iterator ImplIterator; |
209 | | typedef std::bitset<MapSize(static_cast<Enum*>(nullptr))> BitSet; |
210 | | |
211 | 1.19M | EnumBitSetIterator(ImplIterator iter, const BitSet* set) : iter_(iter), set_(set) { |
212 | 1.19M | FindSetBit(); |
213 | 1.19M | } _ZN2yb18EnumBitSetIteratorINS_5docdb10IntentTypeEEC2EPKS2_PKNSt3__16bitsetILm4EEE Line | Count | Source | 211 | 1.19M | EnumBitSetIterator(ImplIterator iter, const BitSet* set) : iter_(iter), set_(set) { | 212 | 1.19M | FindSetBit(); | 213 | 1.19M | } |
Unexecuted instantiation: _ZN2yb18EnumBitSetIteratorINS_9pgwrapper14IndexStateFlagEEC2EPKS2_PKNSt3__16bitsetILm3EEE Unexecuted instantiation: _ZN2yb18EnumBitSetIteratorINS_19TransactionLoadFlagEEC2EPKS1_PKNSt3__16bitsetILm2EEE _ZN2yb18EnumBitSetIteratorINS_9StdFdTypeEEC2EPKS1_PKNSt3__16bitsetILm3EEE Line | Count | Source | 211 | 22 | EnumBitSetIterator(ImplIterator iter, const BitSet* set) : iter_(iter), set_(set) { | 212 | 22 | FindSetBit(); | 213 | 22 | } |
|
214 | | |
215 | 1.14M | Enum operator*() const { |
216 | 1.14M | return *iter_; |
217 | 1.14M | } Unexecuted instantiation: _ZNK2yb18EnumBitSetIteratorINS_19TransactionLoadFlagEEdeEv _ZNK2yb18EnumBitSetIteratorINS_5docdb10IntentTypeEEdeEv Line | Count | Source | 215 | 1.14M | Enum operator*() const { | 216 | 1.14M | return *iter_; | 217 | 1.14M | } |
Unexecuted instantiation: _ZNK2yb18EnumBitSetIteratorINS_9pgwrapper14IndexStateFlagEEdeEv _ZNK2yb18EnumBitSetIteratorINS_9StdFdTypeEEdeEv Line | Count | Source | 215 | 11 | Enum operator*() const { | 216 | 11 | return *iter_; | 217 | 11 | } |
|
218 | | |
219 | 1.09M | EnumBitSetIterator& operator++() { |
220 | 1.09M | ++iter_; |
221 | 1.09M | FindSetBit(); |
222 | 1.09M | return *this; |
223 | 1.09M | } Unexecuted instantiation: _ZN2yb18EnumBitSetIteratorINS_19TransactionLoadFlagEEppEv _ZN2yb18EnumBitSetIteratorINS_5docdb10IntentTypeEEppEv Line | Count | Source | 219 | 1.09M | EnumBitSetIterator& operator++() { | 220 | 1.09M | ++iter_; | 221 | 1.09M | FindSetBit(); | 222 | 1.09M | return *this; | 223 | 1.09M | } |
Unexecuted instantiation: _ZN2yb18EnumBitSetIteratorINS_9pgwrapper14IndexStateFlagEEppEv _ZN2yb18EnumBitSetIteratorINS_9StdFdTypeEEppEv Line | Count | Source | 219 | 11 | EnumBitSetIterator& operator++() { | 220 | 11 | ++iter_; | 221 | 11 | FindSetBit(); | 222 | 11 | return *this; | 223 | 11 | } |
|
224 | | |
225 | | EnumBitSetIterator operator++(int) { |
226 | | EnumBitSetIterator result(*this); |
227 | | ++(*this); |
228 | | return result; |
229 | | } |
230 | | |
231 | | private: |
232 | 2.29M | void FindSetBit() { |
233 | 3.49M | while (iter_ != List(static_cast<Enum*>(nullptr)).end() && !set_->test(to_underlying(*iter_))) { |
234 | 1.19M | ++iter_; |
235 | 1.19M | } |
236 | 2.29M | } Unexecuted instantiation: _ZN2yb18EnumBitSetIteratorINS_19TransactionLoadFlagEE10FindSetBitEv _ZN2yb18EnumBitSetIteratorINS_5docdb10IntentTypeEE10FindSetBitEv Line | Count | Source | 232 | 2.29M | void FindSetBit() { | 233 | 3.49M | while (iter_ != List(static_cast<Enum*>(nullptr)).end() && !set_->test(to_underlying(*iter_))) { | 234 | 1.19M | ++iter_; | 235 | 1.19M | } | 236 | 2.29M | } |
Unexecuted instantiation: _ZN2yb18EnumBitSetIteratorINS_9pgwrapper14IndexStateFlagEE10FindSetBitEv _ZN2yb18EnumBitSetIteratorINS_9StdFdTypeEE10FindSetBitEv Line | Count | Source | 232 | 33 | void FindSetBit() { | 233 | 55 | while (iter_ != List(static_cast<Enum*>(nullptr)).end() && !set_->test(to_underlying(*iter_))) { | 234 | 22 | ++iter_; | 235 | 22 | } | 236 | 33 | } |
|
237 | | |
238 | 1.69M | friend bool operator!=(const EnumBitSetIterator<Enum>& lhs, const EnumBitSetIterator<Enum>& rhs) { |
239 | 1.69M | return lhs.iter_ != rhs.iter_; |
240 | 1.69M | } Unexecuted instantiation: _ZN2ybneERKNS_18EnumBitSetIteratorINS_19TransactionLoadFlagEEES4_ _ZN2ybneERKNS_18EnumBitSetIteratorINS_5docdb10IntentTypeEEES5_ Line | Count | Source | 238 | 1.69M | friend bool operator!=(const EnumBitSetIterator<Enum>& lhs, const EnumBitSetIterator<Enum>& rhs) { | 239 | 1.69M | return lhs.iter_ != rhs.iter_; | 240 | 1.69M | } |
Unexecuted instantiation: _ZN2ybneERKNS_18EnumBitSetIteratorINS_9pgwrapper14IndexStateFlagEEES5_ _ZN2ybneERKNS_18EnumBitSetIteratorINS_9StdFdTypeEEES4_ Line | Count | Source | 238 | 22 | friend bool operator!=(const EnumBitSetIterator<Enum>& lhs, const EnumBitSetIterator<Enum>& rhs) { | 239 | 22 | return lhs.iter_ != rhs.iter_; | 240 | 22 | } |
|
241 | | |
242 | | ImplIterator iter_; |
243 | | const BitSet* set_; |
244 | | }; |
245 | | |
246 | | // EnumBitSet wraps std::bitset for enum type, to avoid casting to/from underlying type for each |
247 | | // operation. Also adds type safety. |
248 | | template <class Enum> |
249 | | class EnumBitSet { |
250 | | public: |
251 | | typedef EnumBitSetIterator<Enum> const_iterator; |
252 | | |
253 | 137M | EnumBitSet() = default; Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb10EnumBitSetINS_5tools12_GLOBAL__N_116ListTabletsFlagsEEC2Ev Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb10EnumBitSetINS_5tools12_GLOBAL__N_110AddIndexesEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_5tools10enterprise17ListSnapshotsFlagEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_6client18BankAccountsOptionEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_9pgwrapper14IndexStateFlagEEC2Ev _ZN2yb10EnumBitSetIN7rocksdb10InsertFlagEEC2Ev Line | Count | Source | 253 | 2.95M | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_3rpc9AnyFieldsEEC2Ev Line | Count | Source | 253 | 2 | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_19TransactionLoadFlagEEC2Ev Line | Count | Source | 253 | 139k | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_9consensus40SetMajorityReplicatedLeaseExpirationFlagEEC2Ev Line | Count | Source | 253 | 15.1M | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_6master11CollectFlagEEC2Ev Line | Count | Source | 253 | 7 | EnumBitSet() = default; |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_12OpIdPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc20RemoteMethodPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc19RequestHeaderFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc20ResponseHeaderFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc19ErrorStatusPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test18AddRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test25AddRequestPartialPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19AddResponsePBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20SleepRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test26SendStringsRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19EchoRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20EchoResponsePBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22WhoAmIResponsePBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test21CalculatorErrorFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19PingRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20PingResponsePBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22ForwardRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23ForwardResponsePBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test21ConcatRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22ConcatResponsePBFieldsEEC2Ev _ZN2yb10EnumBitSetINS_8rpc_test29LightweightSubMessagePBFieldsEEC2Ev Line | Count | Source | 253 | 40 | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_8rpc_test23LightweightPairPBFieldsEEC2Ev Line | Count | Source | 253 | 39 | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_8rpc_test44LightweightRequestPB_MapEntry_DoNotUseFieldsEEC2Ev Line | Count | Source | 253 | 11 | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_8rpc_test26LightweightRequestPBFieldsEEC2Ev Line | Count | Source | 253 | 2 | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_8rpc_test45LightweightResponsePB_MapEntry_DoNotUseFieldsEEC2Ev Line | Count | Source | 253 | 11 | EnumBitSet() = default; |
_ZN2yb10EnumBitSetINS_8rpc_test27LightweightResponsePBFieldsEEC2Ev Line | Count | Source | 253 | 1 | EnumBitSet() = default; |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22TrivialRequestPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20TrivialErrorPBFieldsEEC2Ev Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23TrivialResponsePBFieldsEEC2Ev _ZN2yb10EnumBitSetINS_5docdb10IntentTypeEEC2Ev Line | Count | Source | 253 | 118M | EnumBitSet() = default; |
|
254 | 85.8M | explicit EnumBitSet(uint64_t value) : impl_(value) {} |
255 | | |
256 | 59.7M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { |
257 | 85.8M | for (auto i : inp) { |
258 | 85.8M | impl_.set(to_underlying(i)); |
259 | 85.8M | } |
260 | 59.7M | } _ZN2yb10EnumBitSetINS_9StdFdTypeEEC2ERKSt16initializer_listIS1_E Line | Count | Source | 256 | 7 | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 7 | for (auto i : inp) { | 258 | 7 | impl_.set(to_underlying(i)); | 259 | 7 | } | 260 | 7 | } |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_6client18BankAccountsOptionEEC2ERKSt16initializer_listIS2_E _ZN2yb10EnumBitSetINS_5docdb10IntentTypeEEC2ERKSt16initializer_listIS2_E Line | Count | Source | 256 | 34.3M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 60.3M | for (auto i : inp) { | 258 | 60.3M | impl_.set(to_underlying(i)); | 259 | 60.3M | } | 260 | 34.3M | } |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_14load_generator25MultiThreadedReaderOptionEEC2ERKSt16initializer_listIS2_E Unexecuted instantiation: _ZN2yb10EnumBitSetINS_9pgwrapper14IndexStateFlagEEC2ERKSt16initializer_listIS2_E Unexecuted instantiation: _ZN2yb10EnumBitSetINS_6master11CollectFlagEEC2ERKSt16initializer_listIS2_E _ZN2yb10EnumBitSetIN7rocksdb10InsertFlagEEC2ERKSt16initializer_listIS2_E Line | Count | Source | 256 | 21.9M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 21.9M | for (auto i : inp) { | 258 | 21.9M | impl_.set(to_underlying(i)); | 259 | 21.9M | } | 260 | 21.9M | } |
_ZN2yb10EnumBitSetINS_19TransactionLoadFlagEEC2ERKSt16initializer_listIS1_E Line | Count | Source | 256 | 3.49M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 3.49M | for (auto i : inp) { | 258 | 3.49M | impl_.set(to_underlying(i)); | 259 | 3.49M | } | 260 | 3.49M | } |
|
261 | | |
262 | 121M | bool Test(Enum value) const { |
263 | 121M | return impl_.test(to_underlying(value)); |
264 | 121M | } Unexecuted instantiation: yb-admin_cli.cc:_ZNK2yb10EnumBitSetINS_5tools12_GLOBAL__N_116ListTabletsFlagsEE4TestES3_ Unexecuted instantiation: yb-admin_cli.cc:_ZNK2yb10EnumBitSetINS_5tools12_GLOBAL__N_110AddIndexesEE4TestES3_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_6client18BankAccountsOptionEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_3rpc9AnyFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test18AddRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test25AddRequestPartialPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test19AddResponsePBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test20SleepRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test26SendStringsRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test19EchoRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test20EchoResponsePBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test22WhoAmIResponsePBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test21CalculatorErrorFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test19PingRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test20PingResponsePBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test22ForwardRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test23ForwardResponsePBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test21ConcatRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test22ConcatResponsePBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test44LightweightRequestPB_MapEntry_DoNotUseFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test22TrivialRequestPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test20TrivialErrorPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_8rpc_test23TrivialResponsePBFieldsEE4TestES2_ _ZNK2yb10EnumBitSetINS_9consensus40SetMajorityReplicatedLeaseExpirationFlagEE4TestES2_ Line | Count | Source | 262 | 30.3M | bool Test(Enum value) const { | 263 | 30.3M | return impl_.test(to_underlying(value)); | 264 | 30.3M | } |
Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_14load_generator25MultiThreadedReaderOptionEE4TestES2_ _ZNK2yb10EnumBitSetINS_6master11CollectFlagEE4TestES2_ Line | Count | Source | 262 | 21 | bool Test(Enum value) const { | 263 | 21 | return impl_.test(to_underlying(value)); | 264 | 21 | } |
Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_12OpIdPBFieldsEE4TestES1_ _ZNK2yb10EnumBitSetIN7rocksdb10InsertFlagEE4TestES2_ Line | Count | Source | 262 | 63.3M | bool Test(Enum value) const { | 263 | 63.3M | return impl_.test(to_underlying(value)); | 264 | 63.3M | } |
Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_3rpc20RemoteMethodPBFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_3rpc19RequestHeaderFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_3rpc20ResponseHeaderFieldsEE4TestES2_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_3rpc19ErrorStatusPBFieldsEE4TestES2_ _ZNK2yb10EnumBitSetINS_8rpc_test29LightweightSubMessagePBFieldsEE4TestES2_ Line | Count | Source | 262 | 442 | bool Test(Enum value) const { | 263 | 442 | return impl_.test(to_underlying(value)); | 264 | 442 | } |
_ZNK2yb10EnumBitSetINS_8rpc_test23LightweightPairPBFieldsEE4TestES2_ Line | Count | Source | 262 | 260 | bool Test(Enum value) const { | 263 | 260 | return impl_.test(to_underlying(value)); | 264 | 260 | } |
_ZNK2yb10EnumBitSetINS_8rpc_test26LightweightRequestPBFieldsEE4TestES2_ Line | Count | Source | 262 | 51 | bool Test(Enum value) const { | 263 | 51 | return impl_.test(to_underlying(value)); | 264 | 51 | } |
_ZNK2yb10EnumBitSetINS_8rpc_test45LightweightResponsePB_MapEntry_DoNotUseFieldsEE4TestES2_ Line | Count | Source | 262 | 66 | bool Test(Enum value) const { | 263 | 66 | return impl_.test(to_underlying(value)); | 264 | 66 | } |
_ZNK2yb10EnumBitSetINS_8rpc_test27LightweightResponsePBFieldsEE4TestES2_ Line | Count | Source | 262 | 119 | bool Test(Enum value) const { | 263 | 119 | return impl_.test(to_underlying(value)); | 264 | 119 | } |
_ZNK2yb10EnumBitSetINS_19TransactionLoadFlagEE4TestES1_ Line | Count | Source | 262 | 102 | bool Test(Enum value) const { | 263 | 102 | return impl_.test(to_underlying(value)); | 264 | 102 | } |
Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_5tools10enterprise17ListSnapshotsFlagEE4TestES3_ _ZNK2yb10EnumBitSetINS_5docdb10IntentTypeEE4TestES2_ Line | Count | Source | 262 | 28.3M | bool Test(Enum value) const { | 263 | 28.3M | return impl_.test(to_underlying(value)); | 264 | 28.3M | } |
_ZNK2yb10EnumBitSetINS_9StdFdTypeEE4TestES1_ Line | Count | Source | 262 | 7 | bool Test(Enum value) const { | 263 | 7 | return impl_.test(to_underlying(value)); | 264 | 7 | } |
|
265 | | |
266 | 124M | uintptr_t ToUIntPtr() const { |
267 | 124M | return impl_.to_ulong(); |
268 | 124M | } |
269 | | |
270 | 52.4M | bool None() const { |
271 | 52.4M | return impl_.none(); |
272 | 52.4M | } |
273 | | |
274 | 22.5M | bool Any() const { |
275 | 22.5M | return impl_.any(); |
276 | 22.5M | } |
277 | | |
278 | | bool All() const { |
279 | | return impl_.all(); |
280 | | } |
281 | | |
282 | 9.91k | EnumBitSet& Set(Enum value, bool val = true) { |
283 | 9.91k | impl_.set(to_underlying(value), val); |
284 | 9.91k | return *this; |
285 | 9.91k | } Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb10EnumBitSetINS_5tools12_GLOBAL__N_116ListTabletsFlagsEE3SetES3_b Unexecuted instantiation: yb-admin_cli.cc:_ZN2yb10EnumBitSetINS_5tools12_GLOBAL__N_110AddIndexesEE3SetES3_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_5tools10enterprise17ListSnapshotsFlagEE3SetES3_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_9pgwrapper14IndexStateFlagEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc9AnyFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test18AddRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test25AddRequestPartialPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19AddResponsePBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20SleepRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test26SendStringsRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19EchoRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20EchoResponsePBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22WhoAmIResponsePBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test21CalculatorErrorFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19PingRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20PingResponsePBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22ForwardRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23ForwardResponsePBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test21ConcatRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22ConcatResponsePBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22TrivialRequestPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20TrivialErrorPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23TrivialResponsePBFieldsEE3SetES2_b _ZN2yb10EnumBitSetINS_9consensus40SetMajorityReplicatedLeaseExpirationFlagEE3SetES2_b Line | Count | Source | 282 | 9.66k | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 9.66k | impl_.set(to_underlying(value), val); | 284 | 9.66k | return *this; | 285 | 9.66k | } |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_12OpIdPBFieldsEE3SetES1_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc20RemoteMethodPBFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc19RequestHeaderFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc20ResponseHeaderFieldsEE3SetES2_b Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc19ErrorStatusPBFieldsEE3SetES2_b _ZN2yb10EnumBitSetINS_8rpc_test27LightweightResponsePBFieldsEE3SetES2_b Line | Count | Source | 282 | 17 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 17 | impl_.set(to_underlying(value), val); | 284 | 17 | return *this; | 285 | 17 | } |
_ZN2yb10EnumBitSetINS_8rpc_test29LightweightSubMessagePBFieldsEE3SetES2_b Line | Count | Source | 282 | 80 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 80 | impl_.set(to_underlying(value), val); | 284 | 80 | return *this; | 285 | 80 | } |
_ZN2yb10EnumBitSetINS_8rpc_test23LightweightPairPBFieldsEE3SetES2_b Line | Count | Source | 282 | 78 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 78 | impl_.set(to_underlying(value), val); | 284 | 78 | return *this; | 285 | 78 | } |
_ZN2yb10EnumBitSetINS_8rpc_test45LightweightResponsePB_MapEntry_DoNotUseFieldsEE3SetES2_b Line | Count | Source | 282 | 22 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 22 | impl_.set(to_underlying(value), val); | 284 | 22 | return *this; | 285 | 22 | } |
_ZN2yb10EnumBitSetINS_8rpc_test44LightweightRequestPB_MapEntry_DoNotUseFieldsEE3SetES2_b Line | Count | Source | 282 | 22 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 22 | impl_.set(to_underlying(value), val); | 284 | 22 | return *this; | 285 | 22 | } |
_ZN2yb10EnumBitSetINS_8rpc_test26LightweightRequestPBFieldsEE3SetES2_b Line | Count | Source | 282 | 32 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 32 | impl_.set(to_underlying(value), val); | 284 | 32 | return *this; | 285 | 32 | } |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_5docdb10IntentTypeEE3SetES2_b |
286 | | |
287 | 3 | EnumBitSet& Reset(Enum value) { |
288 | 3 | impl_.reset(to_underlying(value)); |
289 | 3 | return *this; |
290 | 3 | } Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test18AddRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test25AddRequestPartialPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19AddResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20SleepRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test26SendStringsRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19EchoRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20EchoResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22WhoAmIResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test21CalculatorErrorFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test19PingRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20PingResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22ForwardRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23ForwardResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test21ConcatRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22ConcatResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test29LightweightSubMessagePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23LightweightPairPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test44LightweightRequestPB_MapEntry_DoNotUseFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test45LightweightResponsePB_MapEntry_DoNotUseFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test27LightweightResponsePBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test22TrivialRequestPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test20TrivialErrorPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_8rpc_test23TrivialResponsePBFieldsEE5ResetES2_ _ZN2yb10EnumBitSetINS_3rpc9AnyFieldsEE5ResetES2_ Line | Count | Source | 287 | 2 | EnumBitSet& Reset(Enum value) { | 288 | 2 | impl_.reset(to_underlying(value)); | 289 | 2 | return *this; | 290 | 2 | } |
Unexecuted instantiation: _ZN2yb10EnumBitSetINS_6master11CollectFlagEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_12OpIdPBFieldsEE5ResetES1_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc20RemoteMethodPBFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc19RequestHeaderFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc20ResponseHeaderFieldsEE5ResetES2_ Unexecuted instantiation: _ZN2yb10EnumBitSetINS_3rpc19ErrorStatusPBFieldsEE5ResetES2_ _ZN2yb10EnumBitSetINS_8rpc_test26LightweightRequestPBFieldsEE5ResetES2_ Line | Count | Source | 287 | 1 | EnumBitSet& Reset(Enum value) { | 288 | 1 | impl_.reset(to_underlying(value)); | 289 | 1 | return *this; | 290 | 1 | } |
|
291 | | |
292 | 14 | EnumBitSet& SetIf(Enum value, bool do_it) { |
293 | 14 | if (do_it) { |
294 | 0 | impl_.set(to_underlying(value)); |
295 | 0 | } |
296 | 14 | return *this; |
297 | 14 | } |
298 | | |
299 | 599k | const_iterator begin() const { |
300 | 599k | return const_iterator(List(static_cast<Enum*>(nullptr)).begin(), &impl_); |
301 | 599k | } Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_19TransactionLoadFlagEE5beginEv _ZNK2yb10EnumBitSetINS_5docdb10IntentTypeEE5beginEv Line | Count | Source | 299 | 599k | const_iterator begin() const { | 300 | 599k | return const_iterator(List(static_cast<Enum*>(nullptr)).begin(), &impl_); | 301 | 599k | } |
Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_9pgwrapper14IndexStateFlagEE5beginEv _ZNK2yb10EnumBitSetINS_9StdFdTypeEE5beginEv Line | Count | Source | 299 | 11 | const_iterator begin() const { | 300 | 11 | return const_iterator(List(static_cast<Enum*>(nullptr)).begin(), &impl_); | 301 | 11 | } |
|
302 | | |
303 | 599k | const_iterator end() const { |
304 | 599k | return const_iterator(List(static_cast<Enum*>(nullptr)).end(), &impl_); |
305 | 599k | } Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_19TransactionLoadFlagEE3endEv _ZNK2yb10EnumBitSetINS_5docdb10IntentTypeEE3endEv Line | Count | Source | 303 | 599k | const_iterator end() const { | 304 | 599k | return const_iterator(List(static_cast<Enum*>(nullptr)).end(), &impl_); | 305 | 599k | } |
Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_9pgwrapper14IndexStateFlagEE3endEv _ZNK2yb10EnumBitSetINS_9StdFdTypeEE3endEv Line | Count | Source | 303 | 11 | const_iterator end() const { | 304 | 11 | return const_iterator(List(static_cast<Enum*>(nullptr)).end(), &impl_); | 305 | 11 | } |
|
306 | | |
307 | 55.5M | EnumBitSet<Enum>& operator|=(const EnumBitSet& rhs) { |
308 | 55.5M | impl_ |= rhs.impl_; |
309 | 55.5M | return *this; |
310 | 55.5M | } |
311 | | |
312 | | EnumBitSet<Enum>& operator&=(const EnumBitSet& rhs) { |
313 | | impl_ &= rhs.impl_; |
314 | | return *this; |
315 | | } |
316 | | |
317 | 0 | bool operator==(const EnumBitSet<Enum>& rhs) const { |
318 | 0 | return impl_ == rhs.impl_; |
319 | 0 | } |
320 | | |
321 | | bool operator!=(const EnumBitSet<Enum>& rhs) const { |
322 | | return impl_ != rhs.impl_; |
323 | | } |
324 | | |
325 | 0 | bool operator<(const EnumBitSet<Enum>& rhs) const { |
326 | 0 | return impl_.to_ullong() < rhs.impl_.to_ullong(); |
327 | 0 | } Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_9pgwrapper14IndexStateFlagEEltERKS3_ Unexecuted instantiation: _ZNK2yb10EnumBitSetINS_5docdb10IntentTypeEEltERKS3_ |
328 | | |
329 | 0 | bool operator>(const EnumBitSet<Enum>& rhs) const { |
330 | 0 | return impl_.to_ullong() > rhs.impl_.to_ullong(); |
331 | 0 | } |
332 | | |
333 | | private: |
334 | | std::bitset<MapSize(static_cast<Enum*>(nullptr))> impl_; |
335 | | |
336 | 74.9M | friend EnumBitSet<Enum> operator&(const EnumBitSet& lhs, const EnumBitSet& rhs) { |
337 | 74.9M | EnumBitSet<Enum> result; |
338 | 74.9M | result.impl_ = lhs.impl_ & rhs.impl_; |
339 | 74.9M | return result; |
340 | 74.9M | } |
341 | | |
342 | | friend EnumBitSet<Enum> operator|(const EnumBitSet& lhs, const EnumBitSet& rhs) { |
343 | | EnumBitSet<Enum> result; |
344 | | result.impl_ = lhs.impl_ | rhs.impl_; |
345 | | return result; |
346 | | } |
347 | | }; |
348 | | |
349 | | // Parses string representation to enum value |
350 | | template <typename EnumType> |
351 | 5.81k | Result<EnumType> ParseEnumInsensitive(const char* str) { |
352 | 10.4k | for (auto value : List(static_cast<EnumType*>(nullptr))) { |
353 | 10.4k | if (boost::iequals(ToCString(value), str)) { |
354 | 5.81k | return value; |
355 | 5.81k | } |
356 | 10.4k | } |
357 | 0 | return STATUS_FORMAT(InvalidArgument, "$0 invalid value: $1", GetTypeName<EnumType>(), str); |
358 | 5.81k | } |
359 | | |
360 | | template<typename EnumType> |
361 | 5.81k | Result<EnumType> ParseEnumInsensitive(const std::string& str) { |
362 | 5.81k | return ParseEnumInsensitive<EnumType>(str.c_str()); |
363 | 5.81k | } |
364 | | |
365 | | |
366 | | } // namespace yb |
367 | | |
368 | | #endif // YB_UTIL_ENUMS_H_ |