/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 | 541M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { |
41 | 541M | return static_cast<typename std::underlying_type<E>::type>(e); |
42 | 541M | } std::__1::underlying_type<yb::StdFdType>::type yb::to_underlying<yb::StdFdType>(yb::StdFdType) Line | Count | Source | 40 | 2.02k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 2.02k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 2.02k | } |
Unexecuted instantiation: std::__1::underlying_type<yb::DataType>::type yb::to_underlying<yb::DataType>(yb::DataType) Unexecuted instantiation: std::__1::underlying_type<yb::client::GrantRevokeStatementType>::type yb::to_underlying<yb::client::GrantRevokeStatementType>(yb::client::GrantRevokeStatementType) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::ServicePriority>::type yb::to_underlying<yb::rpc::ServicePriority>(yb::rpc::ServicePriority) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::InvokeCallbackMode>::type yb::to_underlying<yb::rpc::InvokeCallbackMode>(yb::rpc::InvokeCallbackMode) Unexecuted instantiation: std::__1::underlying_type<yb::ThreadPoolTokenState>::type yb::to_underlying<yb::ThreadPoolTokenState>(yb::ThreadPoolTokenState) Unexecuted instantiation: std::__1::underlying_type<yb::BinaryOutputFormat>::type yb::to_underlying<yb::BinaryOutputFormat>(yb::BinaryOutputFormat) Unexecuted instantiation: std::__1::underlying_type<yb::UsePrivateIpMode>::type yb::to_underlying<yb::UsePrivateIpMode>(yb::UsePrivateIpMode) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::OperationKind>::type yb::to_underlying<yb::docdb::OperationKind>(yb::docdb::OperationKind) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::IntentStrength>::type yb::to_underlying<yb::docdb::IntentStrength>(yb::docdb::IntentStrength) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::ListExtendOrder>::type yb::to_underlying<yb::docdb::ListExtendOrder>(yb::docdb::ListExtendOrder) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::DocKeyPart>::type yb::to_underlying<yb::docdb::DocKeyPart>(yb::docdb::DocKeyPart) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::GetDocPathsMode>::type yb::to_underlying<yb::docdb::GetDocPathsMode>(yb::docdb::GetDocPathsMode) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::DocOperationType>::type yb::to_underlying<yb::docdb::DocOperationType>(yb::docdb::DocOperationType) Unexecuted instantiation: std::__1::underlying_type<rocksdb::UpdateUserValueType>::type yb::to_underlying<rocksdb::UpdateUserValueType>(rocksdb::UpdateUserValueType) Unexecuted instantiation: std::__1::underlying_type<rocksdb::FrontierModificationMode>::type yb::to_underlying<rocksdb::FrontierModificationMode>(rocksdb::FrontierModificationMode) Unexecuted instantiation: std::__1::underlying_type<rocksdb::KeyValueEncodingFormat>::type yb::to_underlying<rocksdb::KeyValueEncodingFormat>(rocksdb::KeyValueEncodingFormat) Unexecuted instantiation: std::__1::underlying_type<yb::CleanupType>::type yb::to_underlying<yb::CleanupType>(yb::CleanupType) Unexecuted instantiation: std::__1::underlying_type<rocksdb::FlushAbility>::type yb::to_underlying<rocksdb::FlushAbility>(rocksdb::FlushAbility) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::ResolvedIntentState>::type yb::to_underlying<yb::docdb::ResolvedIntentState>(yb::docdb::ResolvedIntentState) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::Direction>::type yb::to_underlying<yb::docdb::Direction>(yb::docdb::Direction) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::SeekIntentIterNeeded>::type yb::to_underlying<yb::docdb::SeekIntentIterNeeded>(yb::docdb::SeekIntentIterNeeded) Unexecuted instantiation: std::__1::underlying_type<yb::StackTraceGroup>::type yb::to_underlying<yb::StackTraceGroup>(yb::StackTraceGroup) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::ResolveState>::type yb::to_underlying<yb::rpc::ResolveState>(yb::rpc::ResolveState) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::StorageDbType>::type yb::to_underlying<yb::docdb::StorageDbType>(yb::docdb::StorageDbType) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::KeyType>::type yb::to_underlying<yb::docdb::KeyType>(yb::docdb::KeyType) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::BoundType>::type yb::to_underlying<yb::docdb::BoundType>(yb::docdb::BoundType) Unexecuted instantiation: std::__1::underlying_type<yb::WriteBatchFieldKind>::type yb::to_underlying<yb::WriteBatchFieldKind>(yb::WriteBatchFieldKind) Unexecuted instantiation: std::__1::underlying_type<yb::WriteBatchOutputFormat>::type yb::to_underlying<yb::WriteBatchOutputFormat>(yb::WriteBatchOutputFormat) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::ValueRefType>::type yb::to_underlying<yb::docdb::ValueRefType>(yb::docdb::ValueRefType) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::InitMarkerBehavior>::type yb::to_underlying<yb::docdb::InitMarkerBehavior>(yb::docdb::InitMarkerBehavior) Unexecuted instantiation: std::__1::underlying_type<rocksdb::UpdateBoundariesType>::type yb::to_underlying<rocksdb::UpdateBoundariesType>(rocksdb::UpdateBoundariesType) Unexecuted instantiation: std::__1::underlying_type<rocksdb::FilterDecision>::type yb::to_underlying<rocksdb::FilterDecision>(rocksdb::FilterDecision) Unexecuted instantiation: std::__1::underlying_type<yb::SubprocessState>::type yb::to_underlying<yb::SubprocessState>(yb::SubprocessState) Unexecuted instantiation: std::__1::underlying_type<yb::SubprocessStreamMode>::type yb::to_underlying<yb::SubprocessStreamMode>(yb::SubprocessStreamMode) Unexecuted instantiation: std::__1::underlying_type<yb::tools::FileType>::type yb::to_underlying<yb::tools::FileType>(yb::tools::FileType) Unexecuted instantiation: std::__1::underlying_type<yb::Env::FileType>::type yb::to_underlying<yb::Env::FileType>(yb::Env::FileType) Unexecuted instantiation: std::__1::underlying_type<yb::tools::DataPatcherAction>::type yb::to_underlying<yb::tools::DataPatcherAction>(yb::tools::DataPatcherAction) Unexecuted instantiation: std::__1::underlying_type<yb::tablet::FlushMode>::type yb::to_underlying<yb::tablet::FlushMode>(yb::tablet::FlushMode) Unexecuted instantiation: std::__1::underlying_type<yb::tablet::RequireLease>::type yb::to_underlying<yb::tablet::RequireLease>(yb::tablet::RequireLease) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::RateLimiterSharingMode>::type yb::to_underlying<yb::docdb::RateLimiterSharingMode>(yb::docdb::RateLimiterSharingMode) Unexecuted instantiation: std::__1::underlying_type<rocksdb::FlushState>::type yb::to_underlying<rocksdb::FlushState>(rocksdb::FlushState) Unexecuted instantiation: std::__1::underlying_type<rocksdb::BlockType>::type yb::to_underlying<rocksdb::BlockType>(rocksdb::BlockType) yb-admin_cli.cc:std::__1::underlying_type<yb::tools::(anonymous namespace)::ListTabletsFlags>::type yb::to_underlying<yb::tools::(anonymous namespace)::ListTabletsFlags>(yb::tools::(anonymous namespace)::ListTabletsFlags) Line | Count | Source | 40 | 18 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 18 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 18 | } |
Unexecuted instantiation: yb-admin_cli.cc:std::__1::underlying_type<yb::tools::(anonymous namespace)::AddIndexes>::type yb::to_underlying<yb::tools::(anonymous namespace)::AddIndexes>(yb::tools::(anonymous namespace)::AddIndexes) Unexecuted instantiation: std::__1::underlying_type<yb::server::SecureContextType>::type yb::to_underlying<yb::server::SecureContextType>(yb::server::SecureContextType) std::__1::underlying_type<yb::tools::enterprise::ListSnapshotsFlag>::type yb::to_underlying<yb::tools::enterprise::ListSnapshotsFlag>(yb::tools::enterprise::ListSnapshotsFlag) Line | Count | Source | 40 | 4 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 4 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 4 | } |
Unexecuted instantiation: std::__1::underlying_type<rocksdb::OutputFormat>::type yb::to_underlying<rocksdb::OutputFormat>(rocksdb::OutputFormat) Unexecuted instantiation: std::__1::underlying_type<yb::ListPeersFilter>::type yb::to_underlying<yb::ListPeersFilter>(yb::ListPeersFilter) Unexecuted instantiation: std::__1::underlying_type<yb::Connectivity>::type yb::to_underlying<yb::Connectivity>(yb::Connectivity) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::TransferState>::type yb::to_underlying<yb::rpc::TransferState>(yb::rpc::TransferState) Unexecuted instantiation: std::__1::underlying_type<yb::pgwrapper::PgProcessState>::type yb::to_underlying<yb::pgwrapper::PgProcessState>(yb::pgwrapper::PgProcessState) Unexecuted instantiation: std::__1::underlying_type<yb::tserver::TabletDirType>::type yb::to_underlying<yb::tserver::TabletDirType>(yb::tserver::TabletDirType) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::LeaderLeaseStatus>::type yb::to_underlying<yb::consensus::LeaderLeaseStatus>(yb::consensus::LeaderLeaseStatus) Unexecuted instantiation: std::__1::underlying_type<yb::client::OpGroup>::type yb::to_underlying<yb::client::OpGroup>(yb::client::OpGroup) Unexecuted instantiation: std::__1::underlying_type<yb::log::SegmentAllocationState>::type yb::to_underlying<yb::log::SegmentAllocationState>(yb::log::SegmentAllocationState) std::__1::underlying_type<yb::consensus::LeaderStatus>::type yb::to_underlying<yb::consensus::LeaderStatus>(yb::consensus::LeaderStatus) 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 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::client::WriteOpType>::type yb::to_underlying<yb::client::WriteOpType>(yb::client::WriteOpType) Unexecuted instantiation: std::__1::underlying_type<yb::client::kv_table_test::Partitioning>::type yb::to_underlying<yb::client::kv_table_test::Partitioning>(yb::client::kv_table_test::Partitioning) Unexecuted instantiation: std::__1::underlying_type<yb::master::GetTablesMode>::type yb::to_underlying<yb::master::GetTablesMode>(yb::master::GetTablesMode) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::ElectionMode>::type yb::to_underlying<yb::consensus::ElectionMode>(yb::consensus::ElectionMode) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::StateChangeReason>::type yb::to_underlying<yb::consensus::StateChangeReason>(yb::consensus::StateChangeReason) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::RequestTriggerMode>::type yb::to_underlying<yb::consensus::RequestTriggerMode>(yb::consensus::RequestTriggerMode) Unexecuted instantiation: std::__1::underlying_type<yb::server::MonitoredTaskState>::type yb::to_underlying<yb::server::MonitoredTaskState>(yb::server::MonitoredTaskState) Unexecuted instantiation: std::__1::underlying_type<yb::tablet::SafeTimeSource>::type yb::to_underlying<yb::tablet::SafeTimeSource>(yb::tablet::SafeTimeSource) Unexecuted instantiation: std::__1::underlying_type<yb::ql::TreeNodeOpcode>::type yb::to_underlying<yb::ql::TreeNodeOpcode>(yb::ql::TreeNodeOpcode) Unexecuted instantiation: pt_select.cc:std::__1::underlying_type<yb::ql::(anonymous namespace)::OpSelectivity>::type yb::to_underlying<yb::ql::(anonymous namespace)::OpSelectivity>(yb::ql::(anonymous namespace)::OpSelectivity) Unexecuted instantiation: std::__1::underlying_type<yb::bfql::ConvertDecimalVia>::type yb::to_underlying<yb::bfql::ConvertDecimalVia>(yb::bfql::ConvertDecimalVia) Unexecuted instantiation: std::__1::underlying_type<CassValueType_>::type yb::to_underlying<CassValueType_>(CassValueType_) Unexecuted instantiation: std::__1::underlying_type<yb::redisserver::RedisClientMode>::type yb::to_underlying<yb::redisserver::RedisClientMode>(yb::redisserver::RedisClientMode) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::ConnectionDirection>::type yb::to_underlying<yb::rpc::ConnectionDirection>(yb::rpc::ConnectionDirection) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::MarkAsDoneResult>::type yb::to_underlying<yb::rpc::MarkAsDoneResult>(yb::rpc::MarkAsDoneResult) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::ReactorState>::type yb::to_underlying<yb::rpc::ReactorState>(yb::rpc::ReactorState) Unexecuted instantiation: redis_service.cc:std::__1::underlying_type<yb::redisserver::(anonymous namespace)::OperationType>::type yb::to_underlying<yb::redisserver::(anonymous namespace)::OperationType>(yb::redisserver::(anonymous namespace)::OperationType) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::BackoffStrategy>::type yb::to_underlying<yb::rpc::BackoffStrategy>(yb::rpc::BackoffStrategy) Unexecuted instantiation: std::__1::underlying_type<yb::client::internal::LocalityLevel>::type yb::to_underlying<yb::client::internal::LocalityLevel>(yb::client::internal::LocalityLevel) Unexecuted instantiation: std::__1::underlying_type<yb::redisserver::RedisParser::State>::type yb::to_underlying<yb::redisserver::RedisParser::State>(yb::redisserver::RedisParser::State) std::__1::underlying_type<yb::tserver::RemoteBootstrapServiceRpcMethodIndexes>::type yb::to_underlying<yb::tserver::RemoteBootstrapServiceRpcMethodIndexes>(yb::tserver::RemoteBootstrapServiceRpcMethodIndexes) Line | Count | Source | 40 | 1.47k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 1.47k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 1.47k | } |
std::__1::underlying_type<yb::tserver::PgClientSessionKind>::type yb::to_underlying<yb::tserver::PgClientSessionKind>(yb::tserver::PgClientSessionKind) Line | Count | Source | 40 | 8.65M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 8.65M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 8.65M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::tserver::ReadTimeManipulation>::type yb::to_underlying<yb::tserver::ReadTimeManipulation>(yb::tserver::ReadTimeManipulation) std::__1::underlying_type<yb::TransactionErrorCode>::type yb::to_underlying<yb::TransactionErrorCode>(yb::TransactionErrorCode) Line | Count | Source | 40 | 201k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 201k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 201k | } |
Unexecuted instantiation: std::__1::underlying_type<yb::client::internal::BatcherState>::type yb::to_underlying<yb::client::internal::BatcherState>(yb::client::internal::BatcherState) std::__1::underlying_type<yb::PgSystemAttrNum>::type yb::to_underlying<yb::PgSystemAttrNum>(yb::PgSystemAttrNum) Line | Count | Source | 40 | 7.74M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 7.74M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 7.74M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::tablet::CreateIntentsCheckpointIn>::type yb::to_underlying<yb::tablet::CreateIntentsCheckpointIn>(yb::tablet::CreateIntentsCheckpointIn) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::RejectMode>::type yb::to_underlying<yb::consensus::RejectMode>(yb::consensus::RejectMode) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::LeaderLeaseCheckMode>::type yb::to_underlying<yb::consensus::LeaderLeaseCheckMode>(yb::consensus::LeaderLeaseCheckMode) Unexecuted instantiation: std::__1::underlying_type<yb::client::ClientErrorCode>::type yb::to_underlying<yb::client::ClientErrorCode>(yb::client::ClientErrorCode) Unexecuted instantiation: audit_logger.cc:std::__1::underlying_type<yb::ql::audit::(anonymous namespace)::Category>::type yb::to_underlying<yb::ql::audit::(anonymous namespace)::Category>(yb::ql::audit::(anonymous namespace)::Category) std::__1::underlying_type<yb::tserver::TabletServerAdminServiceRpcMethodIndexes>::type yb::to_underlying<yb::tserver::TabletServerAdminServiceRpcMethodIndexes>(yb::tserver::TabletServerAdminServiceRpcMethodIndexes) Line | Count | Source | 40 | 29.4k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 29.4k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 29.4k | } |
Unexecuted instantiation: std::__1::underlying_type<rapidjson::Type>::type yb::to_underlying<rapidjson::Type>(rapidjson::Type) std::__1::underlying_type<yb::TransactionLoadFlag>::type yb::to_underlying<yb::TransactionLoadFlag>(yb::TransactionLoadFlag) Line | Count | Source | 40 | 6.44M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 6.44M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 6.44M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::tablet::RemoveReason>::type yb::to_underlying<yb::tablet::RemoveReason>(yb::tablet::RemoveReason) Unexecuted instantiation: std::__1::underlying_type<yb::tablet::UpdateAbortCheckHTMode>::type yb::to_underlying<yb::tablet::UpdateAbortCheckHTMode>(yb::tablet::UpdateAbortCheckHTMode) Unexecuted instantiation: std::__1::underlying_type<yb::TransactionStatus>::type yb::to_underlying<yb::TransactionStatus>(yb::TransactionStatus) std::__1::underlying_type<yb::tablet::OperationType>::type yb::to_underlying<yb::tablet::OperationType>(yb::tablet::OperationType) Line | Count | Source | 40 | 64.1M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 64.1M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 64.1M | } |
std::__1::underlying_type<yb::tablet::FlushFlags>::type yb::to_underlying<yb::tablet::FlushFlags>(yb::tablet::FlushFlags) Line | Count | Source | 40 | 1.21M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 1.21M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 1.21M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::TableType>::type yb::to_underlying<yb::TableType>(yb::TableType) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::OperationType>::type yb::to_underlying<yb::consensus::OperationType>(yb::consensus::OperationType) Unexecuted instantiation: std::__1::underlying_type<yb::docdb::TransactionDumpOp>::type yb::to_underlying<yb::docdb::TransactionDumpOp>(yb::docdb::TransactionDumpOp) Unexecuted instantiation: std::__1::underlying_type<yb::tserver::TabletSnapshotOpRequestPB_Operation>::type yb::to_underlying<yb::tserver::TabletSnapshotOpRequestPB_Operation>(yb::tserver::TabletSnapshotOpRequestPB_Operation) Unexecuted instantiation: std::__1::underlying_type<yb::tablet::WriteQuery::ExecuteMode>::type yb::to_underlying<yb::tablet::WriteQuery::ExecuteMode>(yb::tablet::WriteQuery::ExecuteMode) std::__1::underlying_type<yb::rpc::AnyFields>::type yb::to_underlying<yb::rpc::AnyFields>(yb::rpc::AnyFields) 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 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::rpc::RefinedStreamState>::type yb::to_underlying<yb::rpc::RefinedStreamState>(yb::rpc::RefinedStreamState) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::LocalSide>::type yb::to_underlying<yb::rpc::LocalSide>(yb::rpc::LocalSide) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::RemoteMethodPBFields>::type yb::to_underlying<yb::rpc::RemoteMethodPBFields>(yb::rpc::RemoteMethodPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::RequestHeaderFields>::type yb::to_underlying<yb::rpc::RequestHeaderFields>(yb::rpc::RequestHeaderFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::ResponseHeaderFields>::type yb::to_underlying<yb::rpc::ResponseHeaderFields>(yb::rpc::ResponseHeaderFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc::ErrorStatusPBFields>::type yb::to_underlying<yb::rpc::ErrorStatusPBFields>(yb::rpc::ErrorStatusPBFields) std::__1::underlying_type<yb::rpc::RpcRetrierState>::type yb::to_underlying<yb::rpc::RpcRetrierState>(yb::rpc::RpcRetrierState) 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 | } |
std::__1::underlying_type<yb::PeerRole>::type yb::to_underlying<yb::PeerRole>(yb::PeerRole) Line | Count | Source | 40 | 2.52M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 2.52M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 2.52M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::consensus::PeerMessageQueue::Mode>::type yb::to_underlying<yb::consensus::PeerMessageQueue::Mode>(yb::consensus::PeerMessageQueue::Mode) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::PeerMessageQueue::State>::type yb::to_underlying<yb::consensus::PeerMessageQueue::State>(yb::consensus::PeerMessageQueue::State) Unexecuted instantiation: std::__1::underlying_type<yb::consensus::ElectionVote>::type yb::to_underlying<yb::consensus::ElectionVote>(yb::consensus::ElectionVote) std::__1::underlying_type<yb::consensus::SetMajorityReplicatedLeaseExpirationFlag>::type yb::to_underlying<yb::consensus::SetMajorityReplicatedLeaseExpirationFlag>(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag) Line | Count | Source | 40 | 69.5M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 69.5M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 69.5M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::consensus::OperationMode>::type yb::to_underlying<yb::consensus::OperationMode>(yb::consensus::OperationMode) std::__1::underlying_type<yb::master::CollectFlag>::type yb::to_underlying<yb::master::CollectFlag>(yb::master::CollectFlag) Line | Count | Source | 40 | 295 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 295 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 295 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::master::enterprise::CreateObjects>::type yb::to_underlying<yb::master::enterprise::CreateObjects>(yb::master::enterprise::CreateObjects) Unexecuted instantiation: std::__1::underlying_type<yb::master::SysNamespaceEntryPB_State>::type yb::to_underlying<yb::master::SysNamespaceEntryPB_State>(yb::master::SysNamespaceEntryPB_State) Unexecuted instantiation: std::__1::underlying_type<yb::master::TServersViewType>::type yb::to_underlying<yb::master::TServersViewType>(yb::master::TServersViewType) Unexecuted instantiation: std::__1::underlying_type<yb::master::SnapshotScheduleOperationType>::type yb::to_underlying<yb::master::SnapshotScheduleOperationType>(yb::master::SnapshotScheduleOperationType) std::__1::underlying_type<yb::docdb::ValueType>::type yb::to_underlying<yb::docdb::ValueType>(yb::docdb::ValueType) Line | Count | Source | 40 | 583 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 583 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 583 | } |
Unexecuted instantiation: master_snapshot_coordinator.cc:std::__1::underlying_type<yb::master::(anonymous namespace)::Bound>::type yb::to_underlying<yb::master::(anonymous namespace)::Bound>(yb::master::(anonymous namespace)::Bound) Unexecuted instantiation: master_snapshot_coordinator.cc:std::__1::underlying_type<yb::master::(anonymous namespace)::RestorePhase>::type yb::to_underlying<yb::master::(anonymous namespace)::RestorePhase>(yb::master::(anonymous namespace)::RestorePhase) Unexecuted instantiation: std::__1::underlying_type<yb::master::SysSnapshotEntryPB_State>::type yb::to_underlying<yb::master::SysSnapshotEntryPB_State>(yb::master::SysSnapshotEntryPB_State) Unexecuted instantiation: std::__1::underlying_type<yb::master::SysRowEntryType>::type yb::to_underlying<yb::master::SysRowEntryType>(yb::master::SysRowEntryType) std::__1::underlying_type<yb::cdc::CDCServiceRpcMethodIndexes>::type yb::to_underlying<yb::cdc::CDCServiceRpcMethodIndexes>(yb::cdc::CDCServiceRpcMethodIndexes) Line | Count | Source | 40 | 930 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 930 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 930 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::client::YBClient::ReplicaSelection>::type yb::to_underlying<yb::client::YBClient::ReplicaSelection>(yb::client::YBClient::ReplicaSelection) Unexecuted instantiation: std::__1::underlying_type<yb::ql::ObjectType>::type yb::to_underlying<yb::ql::ObjectType>(yb::ql::ObjectType) Unexecuted instantiation: std::__1::underlying_type<yb::client::YBTableType>::type yb::to_underlying<yb::client::YBTableType>(yb::client::YBTableType) Unexecuted instantiation: transaction.cc:std::__1::underlying_type<yb::client::(anonymous namespace)::TransactionState>::type yb::to_underlying<yb::client::(anonymous namespace)::TransactionState>(yb::client::(anonymous namespace)::TransactionState) Unexecuted instantiation: std::__1::underlying_type<yb::client::MetadataState>::type yb::to_underlying<yb::client::MetadataState>(yb::client::MetadataState) Unexecuted instantiation: std::__1::underlying_type<yb::TransactionLocality>::type yb::to_underlying<yb::TransactionLocality>(yb::TransactionLocality) std::__1::underlying_type<yb::tserver::TabletServerBackupServiceRpcMethodIndexes>::type yb::to_underlying<yb::tserver::TabletServerBackupServiceRpcMethodIndexes>(yb::tserver::TabletServerBackupServiceRpcMethodIndexes) Line | Count | Source | 40 | 2.26k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 2.26k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 2.26k | } |
Unexecuted instantiation: std::__1::underlying_type<yb::master::MasterBackupRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterBackupRpcMethodIndexes>(yb::master::MasterBackupRpcMethodIndexes) Unexecuted instantiation: std::__1::underlying_type<yb::bfql::BFOpcode>::type yb::to_underlying<yb::bfql::BFOpcode>(yb::bfql::BFOpcode) std::__1::underlying_type<yb::tserver::PgClientServiceRpcMethodIndexes>::type yb::to_underlying<yb::tserver::PgClientServiceRpcMethodIndexes>(yb::tserver::PgClientServiceRpcMethodIndexes) Line | Count | Source | 40 | 176k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 176k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 176k | } |
std::__1::underlying_type<yb::tserver::TabletServerServiceRpcMethodIndexes>::type yb::to_underlying<yb::tserver::TabletServerServiceRpcMethodIndexes>(yb::tserver::TabletServerServiceRpcMethodIndexes) Line | Count | Source | 40 | 358k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 358k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 358k | } |
std::__1::underlying_type<yb::docdb::IntentType>::type yb::to_underlying<yb::docdb::IntentType>(yb::docdb::IntentType) Line | Count | Source | 40 | 264M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 264M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 264M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::QLVirtualValuePB>::type yb::to_underlying<yb::QLVirtualValuePB>(yb::QLVirtualValuePB) Unexecuted instantiation: std::__1::underlying_type<yb::QLValuePB::ValueCase>::type yb::to_underlying<yb::QLValuePB::ValueCase>(yb::QLValuePB::ValueCase) Unexecuted instantiation: std::__1::underlying_type<yb::IsolationLevel>::type yb::to_underlying<yb::IsolationLevel>(yb::IsolationLevel) Unexecuted instantiation: std::__1::underlying_type<yb::pggate::PgIsolationLevel>::type yb::to_underlying<yb::pggate::PgIsolationLevel>(yb::pggate::PgIsolationLevel) Unexecuted instantiation: pg_session.cc:std::__1::underlying_type<yb::pggate::(anonymous namespace)::SessionType>::type yb::to_underlying<yb::pggate::(anonymous namespace)::SessionType>(yb::pggate::(anonymous namespace)::SessionType) Unexecuted instantiation: std::__1::underlying_type<yb::load_generator::MultiThreadedReaderOption>::type yb::to_underlying<yb::load_generator::MultiThreadedReaderOption>(yb::load_generator::MultiThreadedReaderOption) Unexecuted instantiation: std::__1::underlying_type<yb::load_generator::ReadStatus>::type yb::to_underlying<yb::load_generator::ReadStatus>(yb::load_generator::ReadStatus) Unexecuted instantiation: std::__1::underlying_type<yb::redisserver::RedisReplyType>::type yb::to_underlying<yb::redisserver::RedisReplyType>(yb::redisserver::RedisReplyType) std::__1::underlying_type<yb::ql::ErrorCode>::type yb::to_underlying<yb::ql::ErrorCode>(yb::ql::ErrorCode) Line | Count | Source | 40 | 1.12M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 1.12M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 1.12M | } |
Unexecuted instantiation: std::__1::underlying_type<yb::QLResponsePB_QLStatus>::type yb::to_underlying<yb::QLResponsePB_QLStatus>(yb::QLResponsePB_QLStatus) Unexecuted instantiation: std::__1::underlying_type<yb::AppStatusPB_ErrorCode>::type yb::to_underlying<yb::AppStatusPB_ErrorCode>(yb::AppStatusPB_ErrorCode) Unexecuted instantiation: std::__1::underlying_type<yb::tablet::RaftGroupStatePB>::type yb::to_underlying<yb::tablet::RaftGroupStatePB>(yb::tablet::RaftGroupStatePB) std::__1::underlying_type<yb::rpc_test::LightweightResponsePBFields>::type yb::to_underlying<yb::rpc_test::LightweightResponsePBFields>(yb::rpc_test::LightweightResponsePBFields) 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 | } |
std::__1::underlying_type<yb::rpc_test::LightweightSubMessagePBFields>::type yb::to_underlying<yb::rpc_test::LightweightSubMessagePBFields>(yb::rpc_test::LightweightSubMessagePBFields) Line | Count | Source | 40 | 378 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 378 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 378 | } |
std::__1::underlying_type<yb::rpc_test::LightweightPairPBFields>::type yb::to_underlying<yb::rpc_test::LightweightPairPBFields>(yb::rpc_test::LightweightPairPBFields) 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 | } |
std::__1::underlying_type<yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields>::type yb::to_underlying<yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields>(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields) 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 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::AddRequestPBFields>::type yb::to_underlying<yb::rpc_test::AddRequestPBFields>(yb::rpc_test::AddRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::AddRequestPartialPBFields>::type yb::to_underlying<yb::rpc_test::AddRequestPartialPBFields>(yb::rpc_test::AddRequestPartialPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::AddResponsePBFields>::type yb::to_underlying<yb::rpc_test::AddResponsePBFields>(yb::rpc_test::AddResponsePBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::SleepRequestPBFields>::type yb::to_underlying<yb::rpc_test::SleepRequestPBFields>(yb::rpc_test::SleepRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::SendStringsRequestPBFields>::type yb::to_underlying<yb::rpc_test::SendStringsRequestPBFields>(yb::rpc_test::SendStringsRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::EchoRequestPBFields>::type yb::to_underlying<yb::rpc_test::EchoRequestPBFields>(yb::rpc_test::EchoRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::EchoResponsePBFields>::type yb::to_underlying<yb::rpc_test::EchoResponsePBFields>(yb::rpc_test::EchoResponsePBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::WhoAmIResponsePBFields>::type yb::to_underlying<yb::rpc_test::WhoAmIResponsePBFields>(yb::rpc_test::WhoAmIResponsePBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::CalculatorErrorFields>::type yb::to_underlying<yb::rpc_test::CalculatorErrorFields>(yb::rpc_test::CalculatorErrorFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::PingRequestPBFields>::type yb::to_underlying<yb::rpc_test::PingRequestPBFields>(yb::rpc_test::PingRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::PingResponsePBFields>::type yb::to_underlying<yb::rpc_test::PingResponsePBFields>(yb::rpc_test::PingResponsePBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::ForwardRequestPBFields>::type yb::to_underlying<yb::rpc_test::ForwardRequestPBFields>(yb::rpc_test::ForwardRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::ForwardResponsePBFields>::type yb::to_underlying<yb::rpc_test::ForwardResponsePBFields>(yb::rpc_test::ForwardResponsePBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::ConcatRequestPBFields>::type yb::to_underlying<yb::rpc_test::ConcatRequestPBFields>(yb::rpc_test::ConcatRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::ConcatResponsePBFields>::type yb::to_underlying<yb::rpc_test::ConcatResponsePBFields>(yb::rpc_test::ConcatResponsePBFields) std::__1::underlying_type<yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields>::type yb::to_underlying<yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields>(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields) 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 | } |
std::__1::underlying_type<yb::rpc_test::LightweightRequestPBFields>::type yb::to_underlying<yb::rpc_test::LightweightRequestPBFields>(yb::rpc_test::LightweightRequestPBFields) 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 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::TrivialRequestPBFields>::type yb::to_underlying<yb::rpc_test::TrivialRequestPBFields>(yb::rpc_test::TrivialRequestPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::TrivialErrorPBFields>::type yb::to_underlying<yb::rpc_test::TrivialErrorPBFields>(yb::rpc_test::TrivialErrorPBFields) Unexecuted instantiation: std::__1::underlying_type<yb::rpc_test::TrivialResponsePBFields>::type yb::to_underlying<yb::rpc_test::TrivialResponsePBFields>(yb::rpc_test::TrivialResponsePBFields) std::__1::underlying_type<yb::rpc_test::CalculatorServiceRpcMethodIndexes>::type yb::to_underlying<yb::rpc_test::CalculatorServiceRpcMethodIndexes>(yb::rpc_test::CalculatorServiceRpcMethodIndexes) 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 | } |
std::__1::underlying_type<yb::rpc_test::AbacusServiceRpcMethodIndexes>::type yb::to_underlying<yb::rpc_test::AbacusServiceRpcMethodIndexes>(yb::rpc_test::AbacusServiceRpcMethodIndexes) 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 | } |
Unexecuted instantiation: std::__1::underlying_type<yb::Status::Code>::type yb::to_underlying<yb::Status::Code>(yb::Status::Code) std::__1::underlying_type<rocksdb::InsertFlag>::type yb::to_underlying<rocksdb::InsertFlag>(rocksdb::InsertFlag) Line | Count | Source | 40 | 98.6M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 98.6M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 98.6M | } |
std::__1::underlying_type<rocksdb::IndexType>::type yb::to_underlying<rocksdb::IndexType>(rocksdb::IndexType) 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: std::__1::underlying_type<rocksdb::BgTaskType>::type yb::to_underlying<rocksdb::BgTaskType>(rocksdb::BgTaskType) Unexecuted instantiation: std::__1::underlying_type<rocksdb::SubCacheType>::type yb::to_underlying<rocksdb::SubCacheType>(rocksdb::SubCacheType) std::__1::underlying_type<rocksdb::TimeoutCode>::type yb::to_underlying<rocksdb::TimeoutCode>(rocksdb::TimeoutCode) 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: std::__1::underlying_type<yb::cdc::OpType>::type yb::to_underlying<yb::cdc::OpType>(yb::cdc::OpType) Unexecuted instantiation: std::__1::underlying_type<yb::AggregationFunction>::type yb::to_underlying<yb::AggregationFunction>(yb::AggregationFunction) Unexecuted instantiation: priority_thread_pool.cc:std::__1::underlying_type<yb::(anonymous namespace)::PriorityThreadPoolTaskState>::type yb::to_underlying<yb::(anonymous namespace)::PriorityThreadPoolTaskState>(yb::(anonymous namespace)::PriorityThreadPoolTaskState) Unexecuted instantiation: stack_trace.cc:std::__1::underlying_type<yb::(anonymous namespace)::ThreadStackState>::type yb::to_underlying<yb::(anonymous namespace)::ThreadStackState>(yb::(anonymous namespace)::ThreadStackState) std::__1::underlying_type<yb::master::MasterAdminRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterAdminRpcMethodIndexes>(yb::master::MasterAdminRpcMethodIndexes) Line | Count | Source | 40 | 333k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 333k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 333k | } |
std::__1::underlying_type<yb::master::MasterClientRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterClientRpcMethodIndexes>(yb::master::MasterClientRpcMethodIndexes) Line | Count | Source | 40 | 212k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 212k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 212k | } |
std::__1::underlying_type<yb::master::MasterClusterRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterClusterRpcMethodIndexes>(yb::master::MasterClusterRpcMethodIndexes) Line | Count | Source | 40 | 924k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 924k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 924k | } |
std::__1::underlying_type<yb::master::MasterDclRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterDclRpcMethodIndexes>(yb::master::MasterDclRpcMethodIndexes) Line | Count | Source | 40 | 181k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 181k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 181k | } |
std::__1::underlying_type<yb::master::MasterDdlRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterDdlRpcMethodIndexes>(yb::master::MasterDdlRpcMethodIndexes) Line | Count | Source | 40 | 878k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 878k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 878k | } |
std::__1::underlying_type<yb::master::MasterEncryptionRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterEncryptionRpcMethodIndexes>(yb::master::MasterEncryptionRpcMethodIndexes) Line | Count | Source | 40 | 31.9k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 31.9k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 31.9k | } |
std::__1::underlying_type<yb::master::MasterHeartbeatRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterHeartbeatRpcMethodIndexes>(yb::master::MasterHeartbeatRpcMethodIndexes) Line | Count | Source | 40 | 8.01k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 8.01k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 8.01k | } |
std::__1::underlying_type<yb::master::MasterReplicationRpcMethodIndexes>::type yb::to_underlying<yb::master::MasterReplicationRpcMethodIndexes>(yb::master::MasterReplicationRpcMethodIndexes) Line | Count | Source | 40 | 424k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 424k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 424k | } |
std::__1::underlying_type<yb::consensus::ConsensusServiceRpcMethodIndexes>::type yb::to_underlying<yb::consensus::ConsensusServiceRpcMethodIndexes>(yb::consensus::ConsensusServiceRpcMethodIndexes) Line | Count | Source | 40 | 166k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 166k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 166k | } |
Unexecuted instantiation: std::__1::underlying_type<yb::OpIdPBFields>::type yb::to_underlying<yb::OpIdPBFields>(yb::OpIdPBFields) Unexecuted instantiation: cql_operation.cc:std::__1::underlying_type<yb::docdb::(anonymous namespace)::ValueState>::type yb::to_underlying<yb::docdb::(anonymous namespace)::ValueState>(yb::docdb::(anonymous namespace)::ValueState) std::__1::underlying_type<yb::docdb::SystemColumnIds>::type yb::to_underlying<yb::docdb::SystemColumnIds>(yb::docdb::SystemColumnIds) Line | Count | Source | 40 | 12.9M | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 12.9M | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 12.9M | } |
std::__1::underlying_type<std::__1::future_status>::type yb::to_underlying<std::__1::future_status>(std::__1::future_status) Line | Count | Source | 40 | 10 | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 10 | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 10 | } |
Unexecuted instantiation: transaction_status_cache.cc:std::__1::underlying_type<yb::docdb::(anonymous namespace)::CommitTimeSource>::type yb::to_underlying<yb::docdb::(anonymous namespace)::CommitTimeSource>(yb::docdb::(anonymous namespace)::CommitTimeSource) std::__1::underlying_type<yb::server::GenericServiceRpcMethodIndexes>::type yb::to_underlying<yb::server::GenericServiceRpcMethodIndexes>(yb::server::GenericServiceRpcMethodIndexes) Line | Count | Source | 40 | 56.3k | constexpr typename std::underlying_type<E>::type to_underlying(E e) { | 41 | 56.3k | return static_cast<typename std::underlying_type<E>::type>(e); | 42 | 56.3k | } |
Unexecuted instantiation: std::__1::underlying_type<yb::tserver::TabletServerForwardServiceRpcMethodIndexes>::type yb::to_underlying<yb::tserver::TabletServerForwardServiceRpcMethodIndexes>(yb::tserver::TabletServerForwardServiceRpcMethodIndexes) Unexecuted instantiation: std::__1::underlying_type<yb::TaskStreamRunState>::type yb::to_underlying<yb::TaskStreamRunState>(yb::TaskStreamRunState) |
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 | 11.2M | case BOOST_PP_TUPLE_ELEM(2, 0, data):: \ |
74 | 11.2M | BOOST_PP_CAT(BOOST_PP_APPLY(BOOST_PP_TUPLE_ELEM(2, 1, data)), YB_ENUM_ITEM_NAME(elem)): \ |
75 | 11.2M | 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 | 11.2M | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ |
93 | 11.2M | switch(value) { \ |
94 | 11.2M | BOOST_PP_SEQ_FOR_EACH(0 YB_ENUM_CASE_NAME, (enum_name, prefix), list);0 \ |
95 | 11.2M | } \ |
96 | 11.2M | return nullptr584 ; \ |
97 | 11.2M | } \ Unexecuted instantiation: yb::client::ToCString(yb::client::GrantRevokeStatementType) Unexecuted instantiation: yb::master::ToCString(yb::master::CollectFlag) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ServicePriority) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::InvokeCallbackMode) Unexecuted instantiation: yb::ToCString(yb::ThreadPoolTokenState) Unexecuted instantiation: yb::ToCString(yb::BinaryOutputFormat) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::OperationKind) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::IntentStrength) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::ListExtendOrder) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::DocKeyPart) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::GetDocPathsMode) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::DocOperationType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::UpdateUserValueType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::FrontierModificationMode) Unexecuted instantiation: rocksdb::ToCString(rocksdb::KeyValueEncodingFormat) Unexecuted instantiation: yb::ToCString(yb::TransactionLoadFlag) Unexecuted instantiation: yb::ToCString(yb::CleanupType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::FlushAbility) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::ResolvedIntentState) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::Direction) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::SeekIntentIterNeeded) Unexecuted instantiation: yb::ToCString(yb::StackTraceGroup) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ResolveState) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::KeyType) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::BoundType) Unexecuted instantiation: yb::ToCString(yb::WriteBatchFieldKind) Unexecuted instantiation: yb::ToCString(yb::WriteBatchOutputFormat) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::ValueRefType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::UpdateBoundariesType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::FilterDecision) Unexecuted instantiation: yb::ToCString(yb::StdFdType) Unexecuted instantiation: yb::ToCString(yb::SubprocessState) Unexecuted instantiation: yb::ToCString(yb::SubprocessStreamMode) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::KeyType) yb::docdb::ToCString(yb::docdb::StorageDbType) Line | Count | Source | 92 | 32 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 32 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 32 | } \ | 96 | 32 | return nullptr0 ; \ | 97 | 32 | } \ |
Unexecuted instantiation: yb::tools::ToCString(yb::tools::DataPatcherAction) Unexecuted instantiation: yb::consensus::ToCString(yb::consensus::LeaderStatus) Unexecuted instantiation: rocksdb::ToCString(rocksdb::IndexType) Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::FlushMode) Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::RequireLease) Unexecuted instantiation: rocksdb::ToCString(rocksdb::FlushState) Unexecuted instantiation: rocksdb::ToCString(rocksdb::InsertFlag) Unexecuted instantiation: rocksdb::ToCString(rocksdb::BlockType) Unexecuted instantiation: yb::tools::ToCString(yb::tools::FileType) yb-admin_cli.cc:yb::tools::(anonymous namespace)::ToCString(yb::tools::(anonymous namespace)::ListTabletsFlags) Line | Count | Source | 92 | 14 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 14 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 14 | } \ | 96 | 14 | return nullptr0 ; \ | 97 | 14 | } \ |
Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::ToCString(yb::tools::(anonymous namespace)::AddIndexes) yb::tools::enterprise::ToCString(yb::tools::enterprise::ListSnapshotsFlag) Line | Count | Source | 92 | 309 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 309 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 309 | } \ | 96 | 309 | return nullptr0 ; \ | 97 | 309 | } \ |
Unexecuted instantiation: rocksdb::ToCString(rocksdb::OutputFormat) Unexecuted instantiation: yb::ToCString(yb::ListPeersFilter) Unexecuted instantiation: yb::ToCString(yb::Connectivity) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::TransferState) Unexecuted instantiation: yb::pgwrapper::ToCString(yb::pgwrapper::PgProcessState) Unexecuted instantiation: yb::tserver::ToCString(yb::tserver::TabletDirType) Unexecuted instantiation: yb::client::ToCString(yb::client::OpGroup) Unexecuted instantiation: yb::log::ToCString(yb::log::SegmentAllocationState) Unexecuted instantiation: yb::consensus::ToCString(yb::consensus::LeaderStatus) Unexecuted instantiation: yb::client::ToCString(yb::client::WriteOpType) Unexecuted instantiation: yb::master::ToCString(yb::master::GetTablesMode) Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::SafeTimeSource) Unexecuted instantiation: yb::ql::ToCString(yb::ql::TreeNodeOpcode) Unexecuted instantiation: pt_select.cc:yb::ql::(anonymous namespace)::ToCString(yb::ql::(anonymous namespace)::OpSelectivity) Unexecuted instantiation: yb::bfql::ToCString(yb::bfql::ConvertDecimalVia) yb::redisserver::ToCString(yb::redisserver::RedisClientMode) 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 | 4 | return nullptr0 ; \ | 97 | 4 | } \ |
Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ConnectionDirection) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::MarkAsDoneResult) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ReactorState) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::BackoffStrategy) Unexecuted instantiation: yb::client::internal::ToCString(yb::client::internal::LocalityLevel) Unexecuted instantiation: redis_service.cc:yb::redisserver::(anonymous namespace)::ToCString(yb::redisserver::(anonymous namespace)::OperationType) Unexecuted instantiation: yb::ql::ToCString(yb::ql::TreeNodeOpcode) Unexecuted instantiation: yb::tserver::ToCString(yb::tserver::TabletDirType) Unexecuted instantiation: yb::tserver::ToCString(yb::tserver::PgClientSessionKind) yb::ToCString(yb::TransactionErrorCode) Line | Count | Source | 92 | 216k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 216k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 216k | } \ | 96 | 216k | return nullptr0 ; \ | 97 | 216k | } \ |
Unexecuted instantiation: yb::client::internal::ToCString(yb::client::internal::BatcherState) Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::CreateIntentsCheckpointIn) Unexecuted instantiation: yb::consensus::ToCString(yb::consensus::RejectMode) yb::client::ToCString(yb::client::ClientErrorCode) 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 | 3 | return nullptr0 ; \ | 97 | 3 | } \ |
audit_logger.cc:yb::ql::audit::(anonymous namespace)::ToCString(yb::ql::audit::(anonymous namespace)::Category) 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 | 10.7k | return nullptr0 ; \ | 97 | 10.7k | } \ |
Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::DocOperationType) Unexecuted instantiation: yb::ToCString(yb::TransactionLoadFlag) Unexecuted instantiation: yb::ToCString(yb::CleanupType) Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::RemoveReason) Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::UpdateAbortCheckHTMode) yb::tablet::ToCString(yb::tablet::OperationType) Line | Count | Source | 92 | 15 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 15 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 15 | } \ | 96 | 15 | return nullptr0 ; \ | 97 | 15 | } \ |
Unexecuted instantiation: yb::tablet::ToCString(yb::tablet::SafeTimeSource) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::TransactionDumpOp) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::AnyFields) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::TransferState) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::MarkAsDoneResult) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ReactorState) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ConnectionDirection) yb::rpc::ToCString(yb::rpc::RefinedStreamState) Line | Count | Source | 92 | 506 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 506 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 506 | } \ | 96 | 506 | return nullptr0 ; \ | 97 | 506 | } \ |
Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::LocalSide) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::RemoteMethodPBFields) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::RequestHeaderFields) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ResponseHeaderFields) Unexecuted instantiation: yb::rpc::ToCString(yb::rpc::ErrorStatusPBFields) yb::rpc::ToCString(yb::rpc::RpcRetrierState) Line | Count | Source | 92 | 67.8k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 67.8k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 67.8k | } \ | 96 | 67.8k | return nullptr1 ; \ | 97 | 67.8k | } \ |
yb::consensus::ToCString(yb::consensus::ElectionMode) Line | Count | Source | 92 | 1.22M | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 1.22M | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 1.22M | } \ | 96 | 1.22M | return nullptr0 ; \ | 97 | 1.22M | } \ |
yb::consensus::ToCString(yb::consensus::StateChangeReason) Line | Count | Source | 92 | 471k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 471k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 471k | } \ | 96 | 471k | return nullptr0 ; \ | 97 | 471k | } \ |
Unexecuted instantiation: yb::consensus::ToCString(yb::consensus::RejectMode) yb::consensus::ToCString(yb::consensus::ElectionVote) 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 | 2 | return nullptr0 ; \ | 97 | 2 | } \ |
Unexecuted instantiation: yb::consensus::ToCString(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag) Unexecuted instantiation: yb::consensus::ToCString(yb::consensus::OperationMode) yb::server::ToCString(yb::server::MonitoredTaskState) Line | Count | Source | 92 | 466k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 466k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 466k | } \ | 96 | 466k | return nullptr0 ; \ | 97 | 466k | } \ |
yb::server::ToCString(yb::server::SecureContextType) Line | Count | Source | 92 | 23.4k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 23.4k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 23.4k | } \ | 96 | 23.4k | return nullptr0 ; \ | 97 | 23.4k | } \ |
Unexecuted instantiation: yb::master::enterprise::ToCString(yb::master::enterprise::CreateObjects) Unexecuted instantiation: yb::master::ToCString(yb::master::TServersViewType) Unexecuted instantiation: yb::master::ToCString(yb::master::SnapshotScheduleOperationType) yb::docdb::ToCString(yb::docdb::ValueType) Line | Count | Source | 92 | 3.60k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 3.60k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 3.60k | } \ | 96 | 3.60k | return nullptr583 ; \ | 97 | 3.60k | } \ |
Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::ToCString(yb::master::(anonymous namespace)::Bound) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::ToCString(yb::master::(anonymous namespace)::RestorePhase) Unexecuted instantiation: yb::client::internal::ToCString(yb::client::internal::BatcherState) transaction.cc:yb::client::(anonymous namespace)::ToCString(yb::client::(anonymous namespace)::TransactionState) Line | Count | Source | 92 | 1.18k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 1.18k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 1.18k | } \ | 96 | 1.18k | return nullptr0 ; \ | 97 | 1.18k | } \ |
Unexecuted instantiation: yb::client::ToCString(yb::client::MetadataState) Unexecuted instantiation: yb::pgwrapper::ToCString(yb::pgwrapper::PgProcessState) Unexecuted instantiation: yb::client::ToCString(yb::client::WriteOpType) yb::docdb::ToCString(yb::docdb::IntentType) Line | Count | Source | 92 | 6.00k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 6.00k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 6.00k | } \ | 96 | 6.00k | return nullptr0 ; \ | 97 | 6.00k | } \ |
Unexecuted instantiation: yb::pggate::ToCString(yb::pggate::PgIsolationLevel) Unexecuted instantiation: pg_session.cc:yb::pggate::(anonymous namespace)::ToCString(yb::pggate::(anonymous namespace)::SessionType) yb::consensus::ToCString(yb::consensus::LeaderLeaseCheckMode) Line | Count | Source | 92 | 2.55k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 2.55k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 2.55k | } \ | 96 | 2.55k | return nullptr0 ; \ | 97 | 2.55k | } \ |
Unexecuted instantiation: yb::load_generator::ToCString(yb::load_generator::ReadStatus) Unexecuted instantiation: yb::load_generator::ToCString(yb::load_generator::MultiThreadedReaderOption) Unexecuted instantiation: yb::redisserver::ToCString(yb::redisserver::RedisReplyType) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::AddRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::AddRequestPartialPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::AddResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::SleepRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::SendStringsRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::EchoRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::EchoResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::WhoAmIResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::CalculatorErrorFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::PingRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::PingResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::ForwardRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::ForwardResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::ConcatRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::ConcatResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::LightweightSubMessagePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::LightweightPairPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::LightweightRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::LightweightResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::TrivialRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::TrivialErrorPBFields) Unexecuted instantiation: yb::rpc_test::ToCString(yb::rpc_test::TrivialResponsePBFields) yb::ToCString(yb::UsePrivateIpMode) Line | Count | Source | 92 | 8.70M | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 8.70M | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 8.70M | } \ | 96 | 8.70M | return nullptr0 ; \ | 97 | 8.70M | } \ |
Unexecuted instantiation: rocksdb::ToCString(rocksdb::UpdateUserValueType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::FlushState) Unexecuted instantiation: rocksdb::ToCString(rocksdb::IndexType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::BgTaskType) Unexecuted instantiation: rocksdb::ToCString(rocksdb::TimeoutCode) Unexecuted instantiation: yb::cdc::ToCString(yb::cdc::OpType) Unexecuted instantiation: yb::ToCString(yb::SubprocessState) Unexecuted instantiation: yb::ToCString(yb::SubprocessStreamMode) priority_thread_pool.cc:yb::(anonymous namespace)::ToCString(yb::(anonymous namespace)::PriorityThreadPoolTaskState) Line | Count | Source | 92 | 831 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 831 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 831 | } \ | 96 | 831 | return nullptr0 ; \ | 97 | 831 | } \ |
Unexecuted instantiation: stack_trace.cc:yb::(anonymous namespace)::ToCString(yb::(anonymous namespace)::ThreadStackState) Unexecuted instantiation: yb::ToCString(yb::ThreadPoolTokenState) Unexecuted instantiation: yb::ToCString(yb::OpIdPBFields) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::ResolvedIntentState) Unexecuted instantiation: yb::docdb::ToCString(yb::docdb::Direction) yb::docdb::ToCString(yb::docdb::InitMarkerBehavior) Line | Count | Source | 92 | 15 | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 15 | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 15 | } \ | 96 | 15 | return nullptr0 ; \ | 97 | 15 | } \ |
yb::docdb::ToCString(yb::docdb::RateLimiterSharingMode) Line | Count | Source | 92 | 17.5k | inline __attribute__((unused)) const char* ToCString(enum_name value) { \ | 93 | 17.5k | switch(value) { \ | 94 | 0 | BOOST_PP_SEQ_FOR_EACH(YB_ENUM_CASE_NAME, (enum_name, prefix), list); \ | 95 | 17.5k | } \ | 96 | 17.5k | return nullptr0 ; \ | 97 | 17.5k | } \ |
Unexecuted instantiation: cql_operation.cc:yb::docdb::(anonymous namespace)::ToCString(yb::docdb::(anonymous namespace)::ValueState) Unexecuted instantiation: transaction_status_cache.cc:yb::docdb::(anonymous namespace)::ToCString(yb::docdb::(anonymous namespace)::CommitTimeSource) Unexecuted instantiation: yb::redisserver::ToCString(yb::redisserver::RedisReplyType) Unexecuted instantiation: yb::ToCString(yb::TaskStreamRunState) Unexecuted instantiation: yb::log::ToCString(yb::log::SegmentAllocationState) |
98 | | \ |
99 | 2.49M | inline __attribute__((unused)) std::string ToString(enum_name value) { \ |
100 | 2.49M | const char* c_str = ToCString(value); \ |
101 | 2.49M | if (c_str != nullptr) \ |
102 | 2.49M | return c_str2.49M ; \ |
103 | 2.49M | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ |
104 | 1.33k | std::to_string(::yb::to_underlying(value)) + ">"; \ |
105 | 2.49M | } \ Unexecuted instantiation: yb::client::ToString(yb::client::GrantRevokeStatementType) Unexecuted instantiation: yb::master::ToString(yb::master::CollectFlag) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::ServicePriority) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::InvokeCallbackMode) Unexecuted instantiation: yb::ToString(yb::ThreadPoolTokenState) Unexecuted instantiation: yb::ToString(yb::BinaryOutputFormat) Unexecuted instantiation: yb::ToString(yb::UsePrivateIpMode) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::OperationKind) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::IntentStrength) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::ListExtendOrder) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::DocKeyPart) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::GetDocPathsMode) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::DocOperationType) Unexecuted instantiation: rocksdb::ToString(rocksdb::UpdateUserValueType) Unexecuted instantiation: rocksdb::ToString(rocksdb::FrontierModificationMode) Unexecuted instantiation: rocksdb::ToString(rocksdb::KeyValueEncodingFormat) Unexecuted instantiation: yb::ToString(yb::TransactionLoadFlag) Unexecuted instantiation: yb::ToString(yb::CleanupType) Unexecuted instantiation: rocksdb::ToString(rocksdb::FlushAbility) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::ResolvedIntentState) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::Direction) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::SeekIntentIterNeeded) Unexecuted instantiation: yb::ToString(yb::StackTraceGroup) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::ResolveState) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::KeyType) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::BoundType) Unexecuted instantiation: yb::ToString(yb::WriteBatchFieldKind) Unexecuted instantiation: yb::ToString(yb::WriteBatchOutputFormat) Unexecuted instantiation: yb::docdb::ToString(yb::docdb::ValueRefType) Unexecuted instantiation: rocksdb::ToString(rocksdb::UpdateBoundariesType) Unexecuted instantiation: rocksdb::ToString(rocksdb::FilterDecision) Unexecuted instantiation: yb::ToString(yb::StdFdType) Unexecuted instantiation: yb::ToString(yb::SubprocessState) Unexecuted instantiation: yb::ToString(yb::SubprocessStreamMode) yb::docdb::ToString(yb::docdb::StorageDbType) Line | Count | Source | 99 | 32 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 32 | const char* c_str = ToCString(value); \ | 101 | 32 | if (c_str != nullptr) \ | 102 | 32 | return c_str; \ | 103 | 32 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 32 | } \ |
Unexecuted instantiation: yb::tools::ToString(yb::tools::DataPatcherAction) Unexecuted instantiation: yb::consensus::ToString(yb::consensus::LeaderStatus) Unexecuted instantiation: rocksdb::ToString(rocksdb::IndexType) Unexecuted instantiation: yb::tablet::ToString(yb::tablet::FlushMode) Unexecuted instantiation: yb::tablet::ToString(yb::tablet::RequireLease) Unexecuted instantiation: rocksdb::ToString(rocksdb::FlushState) Unexecuted instantiation: rocksdb::ToString(rocksdb::InsertFlag) Unexecuted instantiation: rocksdb::ToString(rocksdb::BlockType) Unexecuted instantiation: yb::tools::ToString(yb::tools::FileType) yb-admin_cli.cc:yb::tools::(anonymous namespace)::ToString(yb::tools::(anonymous namespace)::ListTabletsFlags) Line | Count | Source | 99 | 14 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 14 | const char* c_str = ToCString(value); \ | 101 | 14 | if (c_str != nullptr) \ | 102 | 14 | return c_str; \ | 103 | 14 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 14 | } \ |
Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::ToString(yb::tools::(anonymous namespace)::AddIndexes) yb::tools::enterprise::ToString(yb::tools::enterprise::ListSnapshotsFlag) Line | Count | Source | 99 | 309 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 309 | const char* c_str = ToCString(value); \ | 101 | 309 | if (c_str != nullptr) \ | 102 | 309 | return c_str; \ | 103 | 309 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 309 | } \ |
Unexecuted instantiation: rocksdb::ToString(rocksdb::OutputFormat) Unexecuted instantiation: yb::ToString(yb::ListPeersFilter) Unexecuted instantiation: yb::ToString(yb::Connectivity) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::TransferState) Unexecuted instantiation: yb::pgwrapper::ToString(yb::pgwrapper::PgProcessState) Unexecuted instantiation: yb::tserver::ToString(yb::tserver::TabletDirType) Unexecuted instantiation: yb::client::ToString(yb::client::OpGroup) Unexecuted instantiation: yb::log::ToString(yb::log::SegmentAllocationState) Unexecuted instantiation: yb::client::ToString(yb::client::WriteOpType) Unexecuted instantiation: yb::master::ToString(yb::master::GetTablesMode) Unexecuted instantiation: yb::tablet::ToString(yb::tablet::SafeTimeSource) Unexecuted instantiation: yb::ql::ToString(yb::ql::TreeNodeOpcode) Unexecuted instantiation: pt_select.cc:yb::ql::(anonymous namespace)::ToString(yb::ql::(anonymous namespace)::OpSelectivity) Unexecuted instantiation: yb::bfql::ToString(yb::bfql::ConvertDecimalVia) yb::redisserver::ToString(yb::redisserver::RedisClientMode) 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 | 4 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 4 | } \ |
Unexecuted instantiation: yb::rpc::ToString(yb::rpc::ConnectionDirection) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::MarkAsDoneResult) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::ReactorState) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::BackoffStrategy) Unexecuted instantiation: yb::client::internal::ToString(yb::client::internal::LocalityLevel) Unexecuted instantiation: redis_service.cc:yb::redisserver::(anonymous namespace)::ToString(yb::redisserver::(anonymous namespace)::OperationType) Unexecuted instantiation: yb::tserver::ToString(yb::tserver::PgClientSessionKind) yb::ToString(yb::TransactionErrorCode) Line | Count | Source | 99 | 216k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 216k | const char* c_str = ToCString(value); \ | 101 | 216k | if (c_str != nullptr) \ | 102 | 216k | return c_str; \ | 103 | 18.4E | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 18.4E | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 216k | } \ |
Unexecuted instantiation: yb::client::internal::ToString(yb::client::internal::BatcherState) Unexecuted instantiation: yb::tablet::ToString(yb::tablet::CreateIntentsCheckpointIn) Unexecuted instantiation: yb::consensus::ToString(yb::consensus::RejectMode) yb::client::ToString(yb::client::ClientErrorCode) 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 | 3 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 3 | } \ |
audit_logger.cc:yb::ql::audit::(anonymous namespace)::ToString(yb::ql::audit::(anonymous namespace)::Category) 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 | 10.7k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 10.7k | } \ |
Unexecuted instantiation: yb::tablet::ToString(yb::tablet::RemoveReason) Unexecuted instantiation: yb::tablet::ToString(yb::tablet::UpdateAbortCheckHTMode) yb::tablet::ToString(yb::tablet::OperationType) Line | Count | Source | 99 | 15 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 15 | const char* c_str = ToCString(value); \ | 101 | 15 | if (c_str != nullptr) \ | 102 | 15 | return c_str; \ | 103 | 15 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 15 | } \ |
Unexecuted instantiation: yb::docdb::ToString(yb::docdb::TransactionDumpOp) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::AnyFields) yb::rpc::ToString(yb::rpc::RefinedStreamState) Line | Count | Source | 99 | 506 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 506 | const char* c_str = ToCString(value); \ | 101 | 506 | if (c_str != nullptr) \ | 102 | 506 | return c_str; \ | 103 | 506 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 506 | } \ |
Unexecuted instantiation: yb::rpc::ToString(yb::rpc::LocalSide) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::RemoteMethodPBFields) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::RequestHeaderFields) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::ResponseHeaderFields) Unexecuted instantiation: yb::rpc::ToString(yb::rpc::ErrorStatusPBFields) yb::rpc::ToString(yb::rpc::RpcRetrierState) Line | Count | Source | 99 | 67.8k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 67.8k | const char* c_str = ToCString(value); \ | 101 | 67.8k | if (c_str != nullptr) \ | 102 | 67.8k | return c_str; \ | 103 | 18.4E | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 18.4E | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 67.8k | } \ |
yb::consensus::ToString(yb::consensus::ElectionMode) Line | Count | Source | 99 | 1.22M | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 1.22M | const char* c_str = ToCString(value); \ | 101 | 1.22M | if (c_str != nullptr) \ | 102 | 1.22M | return c_str1.22M ; \ | 103 | 1.22M | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 38 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 1.22M | } \ |
yb::consensus::ToString(yb::consensus::StateChangeReason) Line | Count | Source | 99 | 471k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 471k | const char* c_str = ToCString(value); \ | 101 | 471k | if (c_str != nullptr) \ | 102 | 471k | return c_str471k ; \ | 103 | 471k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 283 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 471k | } \ |
yb::consensus::ToString(yb::consensus::ElectionVote) 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 | 2 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 2 | } \ |
Unexecuted instantiation: yb::consensus::ToString(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag) Unexecuted instantiation: yb::consensus::ToString(yb::consensus::OperationMode) yb::server::ToString(yb::server::MonitoredTaskState) Line | Count | Source | 99 | 466k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 466k | const char* c_str = ToCString(value); \ | 101 | 466k | if (c_str != nullptr) \ | 102 | 466k | return c_str465k ; \ | 103 | 466k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 434 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 466k | } \ |
yb::server::ToString(yb::server::SecureContextType) Line | Count | Source | 99 | 23.4k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 23.4k | const char* c_str = ToCString(value); \ | 101 | 23.4k | if (c_str != nullptr) \ | 102 | 23.4k | return c_str; \ | 103 | 23.4k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 23.4k | } \ |
Unexecuted instantiation: yb::master::enterprise::ToString(yb::master::enterprise::CreateObjects) Unexecuted instantiation: yb::master::ToString(yb::master::TServersViewType) Unexecuted instantiation: yb::master::ToString(yb::master::SnapshotScheduleOperationType) yb::docdb::ToString(yb::docdb::ValueType) Line | Count | Source | 99 | 3.60k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 3.60k | const char* c_str = ToCString(value); \ | 101 | 3.60k | if (c_str != nullptr) \ | 102 | 3.60k | return c_str3.02k ; \ | 103 | 3.60k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 583 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 3.60k | } \ |
Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::ToString(yb::master::(anonymous namespace)::Bound) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::ToString(yb::master::(anonymous namespace)::RestorePhase) transaction.cc:yb::client::(anonymous namespace)::ToString(yb::client::(anonymous namespace)::TransactionState) Line | Count | Source | 99 | 1.18k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 1.18k | const char* c_str = ToCString(value); \ | 101 | 1.18k | if (c_str != nullptr) \ | 102 | 1.18k | return c_str; \ | 103 | 1.18k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 1.18k | } \ |
Unexecuted instantiation: yb::client::ToString(yb::client::MetadataState) yb::docdb::ToString(yb::docdb::IntentType) Line | Count | Source | 99 | 6.00k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 6.00k | const char* c_str = ToCString(value); \ | 101 | 6.00k | if (c_str != nullptr) \ | 102 | 6.00k | return c_str; \ | 103 | 6.00k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 6.00k | } \ |
Unexecuted instantiation: yb::pggate::ToString(yb::pggate::PgIsolationLevel) Unexecuted instantiation: pg_session.cc:yb::pggate::(anonymous namespace)::ToString(yb::pggate::(anonymous namespace)::SessionType) yb::consensus::ToString(yb::consensus::LeaderLeaseCheckMode) Line | Count | Source | 99 | 2.55k | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 2.55k | const char* c_str = ToCString(value); \ | 101 | 2.55k | if (c_str != nullptr) \ | 102 | 2.55k | return c_str; \ | 103 | 2.55k | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 2.55k | } \ |
Unexecuted instantiation: yb::load_generator::ToString(yb::load_generator::ReadStatus) Unexecuted instantiation: yb::load_generator::ToString(yb::load_generator::MultiThreadedReaderOption) Unexecuted instantiation: yb::redisserver::ToString(yb::redisserver::RedisReplyType) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::AddRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::AddRequestPartialPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::AddResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::SleepRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::SendStringsRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::EchoRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::EchoResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::WhoAmIResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::CalculatorErrorFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::PingRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::PingResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::ForwardRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::ForwardResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::ConcatRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::ConcatResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::LightweightSubMessagePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::LightweightPairPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::LightweightRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::LightweightResponsePBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::TrivialRequestPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::TrivialErrorPBFields) Unexecuted instantiation: yb::rpc_test::ToString(yb::rpc_test::TrivialResponsePBFields) Unexecuted instantiation: rocksdb::ToString(rocksdb::BgTaskType) Unexecuted instantiation: rocksdb::ToString(rocksdb::TimeoutCode) Unexecuted instantiation: yb::cdc::ToString(yb::cdc::OpType) priority_thread_pool.cc:yb::(anonymous namespace)::ToString(yb::(anonymous namespace)::PriorityThreadPoolTaskState) Line | Count | Source | 99 | 831 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 831 | const char* c_str = ToCString(value); \ | 101 | 831 | if (c_str != nullptr) \ | 102 | 831 | return c_str; \ | 103 | 831 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 831 | } \ |
Unexecuted instantiation: stack_trace.cc:yb::(anonymous namespace)::ToString(yb::(anonymous namespace)::ThreadStackState) Unexecuted instantiation: yb::ToString(yb::OpIdPBFields) yb::docdb::ToString(yb::docdb::InitMarkerBehavior) Line | Count | Source | 99 | 15 | inline __attribute__((unused)) std::string ToString(enum_name value) { \ | 100 | 15 | const char* c_str = ToCString(value); \ | 101 | 15 | if (c_str != nullptr) \ | 102 | 15 | return c_str; \ | 103 | 15 | return "<unknown " BOOST_PP_STRINGIZE(enum_name) " : " + \ | 104 | 0 | std::to_string(::yb::to_underlying(value)) + ">"; \ | 105 | 15 | } \ |
Unexecuted instantiation: cql_operation.cc:yb::docdb::(anonymous namespace)::ToString(yb::docdb::(anonymous namespace)::ValueState) Unexecuted instantiation: transaction_status_cache.cc:yb::docdb::(anonymous namespace)::ToString(yb::docdb::(anonymous namespace)::CommitTimeSource) Unexecuted instantiation: yb::ToString(yb::TaskStreamRunState) |
106 | 1.72M | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ |
107 | 1.72M | return out << ToString(value); \ |
108 | 1.72M | } \ Unexecuted instantiation: yb::client::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::GrantRevokeStatementType) Unexecuted instantiation: yb::master::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::CollectFlag) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::ServicePriority) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::InvokeCallbackMode) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::ThreadPoolTokenState) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::BinaryOutputFormat) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::UsePrivateIpMode) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::OperationKind) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::IntentStrength) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::ListExtendOrder) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::DocKeyPart) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::GetDocPathsMode) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::DocOperationType) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::UpdateUserValueType) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::FrontierModificationMode) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::KeyValueEncodingFormat) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::TransactionLoadFlag) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::CleanupType) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::FlushAbility) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::ResolvedIntentState) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::Direction) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::SeekIntentIterNeeded) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::StackTraceGroup) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::ResolveState) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::ValueType) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::StorageDbType) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::KeyType) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::BoundType) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::WriteBatchFieldKind) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::WriteBatchOutputFormat) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::ValueRefType) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::UpdateBoundariesType) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::FilterDecision) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::StdFdType) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::SubprocessState) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::SubprocessStreamMode) Unexecuted instantiation: yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::LeaderStatus) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::IndexType) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::FlushMode) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::RequireLease) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::RateLimiterSharingMode) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::FlushState) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::InsertFlag) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::BlockType) Unexecuted instantiation: yb::tools::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tools::DataPatcherAction) Unexecuted instantiation: yb::tools::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tools::FileType) Unexecuted instantiation: yb::tools::enterprise::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tools::enterprise::ListSnapshotsFlag) Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tools::(anonymous namespace)::AddIndexes) Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tools::(anonymous namespace)::ListTabletsFlags) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::OutputFormat) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::ListPeersFilter) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::Connectivity) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::TransferState) Unexecuted instantiation: yb::pgwrapper::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::pgwrapper::PgProcessState) Unexecuted instantiation: yb::tserver::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tserver::TabletDirType) Unexecuted instantiation: yb::client::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::OpGroup) Unexecuted instantiation: yb::log::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::log::SegmentAllocationState) Unexecuted instantiation: yb::client::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::WriteOpType) Unexecuted instantiation: yb::master::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::GetTablesMode) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::IntentType) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::SafeTimeSource) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::OperationType) Unexecuted instantiation: yb::ql::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::ql::TreeNodeOpcode) Unexecuted instantiation: pt_select.cc:yb::ql::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::ql::(anonymous namespace)::OpSelectivity) Unexecuted instantiation: yb::bfql::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::bfql::ConvertDecimalVia) yb::redisserver::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::redisserver::RedisClientMode) 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: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::ConnectionDirection) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::MarkAsDoneResult) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::ReactorState) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::RpcRetrierState) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::BackoffStrategy) Unexecuted instantiation: yb::client::internal::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::internal::LocalityLevel) Unexecuted instantiation: redis_service.cc:yb::redisserver::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::redisserver::(anonymous namespace)::OperationType) Unexecuted instantiation: yb::tserver::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tserver::PgClientSessionKind) Unexecuted instantiation: yb::client::internal::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::internal::BatcherState) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::TransactionErrorCode) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::CreateIntentsCheckpointIn) Unexecuted instantiation: yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::RejectMode) Unexecuted instantiation: yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::LeaderLeaseCheckMode) Unexecuted instantiation: yb::client::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::ClientErrorCode) Unexecuted instantiation: audit_logger.cc:yb::ql::audit::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::ql::audit::(anonymous namespace)::Category) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::RemoveReason) Unexecuted instantiation: yb::tablet::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::tablet::UpdateAbortCheckHTMode) Unexecuted instantiation: yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::TransactionDumpOp) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::AnyFields) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::RefinedStreamState) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::LocalSide) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::RemoteMethodPBFields) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::RequestHeaderFields) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::ResponseHeaderFields) Unexecuted instantiation: yb::rpc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc::ErrorStatusPBFields) yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::ElectionMode) Line | Count | Source | 106 | 1.22M | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 1.22M | return out << ToString(value); \ | 108 | 1.22M | } \ |
yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::StateChangeReason) Line | Count | Source | 106 | 471k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 471k | return out << ToString(value); \ | 108 | 471k | } \ |
Unexecuted instantiation: yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::ElectionVote) Unexecuted instantiation: yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::SetMajorityReplicatedLeaseExpirationFlag) Unexecuted instantiation: yb::consensus::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::consensus::OperationMode) yb::server::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::server::SecureContextType) Line | Count | Source | 106 | 23.4k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 23.4k | return out << ToString(value); \ | 108 | 23.4k | } \ |
yb::server::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::server::MonitoredTaskState) Line | Count | Source | 106 | 13 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 13 | return out << ToString(value); \ | 108 | 13 | } \ |
Unexecuted instantiation: yb::master::enterprise::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::enterprise::CreateObjects) Unexecuted instantiation: yb::master::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::TServersViewType) Unexecuted instantiation: yb::master::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::SnapshotScheduleOperationType) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::(anonymous namespace)::Bound) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::master::(anonymous namespace)::RestorePhase) transaction.cc:yb::client::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::(anonymous namespace)::TransactionState) Line | Count | Source | 106 | 1.18k | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 1.18k | return out << ToString(value); \ | 108 | 1.18k | } \ |
Unexecuted instantiation: yb::client::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::client::MetadataState) Unexecuted instantiation: yb::pggate::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::pggate::PgIsolationLevel) Unexecuted instantiation: pg_session.cc:yb::pggate::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::pggate::(anonymous namespace)::SessionType) Unexecuted instantiation: yb::load_generator::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::load_generator::ReadStatus) Unexecuted instantiation: yb::load_generator::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::load_generator::MultiThreadedReaderOption) Unexecuted instantiation: yb::redisserver::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::redisserver::RedisReplyType) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::AddRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::AddRequestPartialPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::AddResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::SleepRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::SendStringsRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::EchoRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::EchoResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::WhoAmIResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::CalculatorErrorFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::PingRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::PingResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::ForwardRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::ForwardResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::ConcatRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::ConcatResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::LightweightSubMessagePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::LightweightPairPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::LightweightRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::LightweightResponsePBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::TrivialRequestPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::TrivialErrorPBFields) Unexecuted instantiation: yb::rpc_test::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::rpc_test::TrivialResponsePBFields) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::BgTaskType) Unexecuted instantiation: rocksdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, rocksdb::TimeoutCode) Unexecuted instantiation: yb::cdc::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::cdc::OpType) Unexecuted instantiation: priority_thread_pool.cc:yb::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::(anonymous namespace)::PriorityThreadPoolTaskState) Unexecuted instantiation: stack_trace.cc:yb::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::(anonymous namespace)::ThreadStackState) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::OpIdPBFields) yb::docdb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::InitMarkerBehavior) Line | Count | Source | 106 | 15 | inline __attribute__((unused)) std::ostream& operator<<(std::ostream& out, enum_name value) { \ | 107 | 15 | return out << ToString(value); \ | 108 | 15 | } \ |
Unexecuted instantiation: cql_operation.cc:yb::docdb::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::(anonymous namespace)::ValueState) Unexecuted instantiation: transaction_status_cache.cc:yb::docdb::(anonymous namespace)::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::docdb::(anonymous namespace)::CommitTimeSource) Unexecuted instantiation: yb::operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, yb::TaskStreamRunState) |
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: yb::client::MapSize(yb::client::GrantRevokeStatementType*) Unexecuted instantiation: yb::master::MapSize(yb::master::CollectFlag*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::ServicePriority*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::InvokeCallbackMode*) Unexecuted instantiation: yb::MapSize(yb::ThreadPoolTokenState*) Unexecuted instantiation: yb::MapSize(yb::BinaryOutputFormat*) Unexecuted instantiation: yb::MapSize(yb::UsePrivateIpMode*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::OperationKind*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::IntentStrength*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::ListExtendOrder*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::DocKeyPart*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::GetDocPathsMode*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::DocOperationType*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::UpdateUserValueType*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::FrontierModificationMode*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::KeyValueEncodingFormat*) Unexecuted instantiation: yb::MapSize(yb::TransactionLoadFlag*) Unexecuted instantiation: yb::MapSize(yb::CleanupType*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::FlushAbility*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::ResolvedIntentState*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::Direction*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::SeekIntentIterNeeded*) Unexecuted instantiation: yb::MapSize(yb::StackTraceGroup*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::ResolveState*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::ValueType*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::StorageDbType*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::KeyType*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::BoundType*) Unexecuted instantiation: yb::MapSize(yb::WriteBatchFieldKind*) Unexecuted instantiation: yb::MapSize(yb::WriteBatchOutputFormat*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::ValueRefType*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::InitMarkerBehavior*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::UpdateBoundariesType*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::FilterDecision*) Unexecuted instantiation: yb::MapSize(yb::StdFdType*) Unexecuted instantiation: yb::MapSize(yb::SubprocessState*) Unexecuted instantiation: yb::MapSize(yb::SubprocessStreamMode*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::LeaderStatus*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::IndexType*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::FlushMode*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::RequireLease*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::RateLimiterSharingMode*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::FlushState*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::InsertFlag*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::BlockType*) Unexecuted instantiation: yb::tools::MapSize(yb::tools::DataPatcherAction*) Unexecuted instantiation: yb::tools::MapSize(yb::tools::FileType*) Unexecuted instantiation: yb::server::MapSize(yb::server::SecureContextType*) Unexecuted instantiation: yb::tools::enterprise::MapSize(yb::tools::enterprise::ListSnapshotsFlag*) Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::MapSize(yb::tools::(anonymous namespace)::AddIndexes*) Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::MapSize(yb::tools::(anonymous namespace)::ListTabletsFlags*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::OutputFormat*) Unexecuted instantiation: yb::MapSize(yb::ListPeersFilter*) Unexecuted instantiation: yb::MapSize(yb::Connectivity*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::TransferState*) Unexecuted instantiation: yb::pgwrapper::MapSize(yb::pgwrapper::PgProcessState*) Unexecuted instantiation: yb::tserver::MapSize(yb::tserver::TabletDirType*) Unexecuted instantiation: yb::client::MapSize(yb::client::OpGroup*) Unexecuted instantiation: yb::log::MapSize(yb::log::SegmentAllocationState*) Unexecuted instantiation: yb::client::MapSize(yb::client::WriteOpType*) Unexecuted instantiation: yb::client::kv_table_test::MapSize(yb::client::kv_table_test::Partitioning*) Unexecuted instantiation: yb::master::MapSize(yb::master::GetTablesMode*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::ElectionMode*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::StateChangeReason*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::RequestTriggerMode*) Unexecuted instantiation: yb::server::MapSize(yb::server::MonitoredTaskState*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::IntentType*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::SafeTimeSource*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::OperationType*) Unexecuted instantiation: yb::ql::MapSize(yb::ql::TreeNodeOpcode*) Unexecuted instantiation: pt_select.cc:yb::ql::(anonymous namespace)::MapSize(yb::ql::(anonymous namespace)::OpSelectivity*) Unexecuted instantiation: yb::bfql::MapSize(yb::bfql::ConvertDecimalVia*) Unexecuted instantiation: yb::redisserver::MapSize(yb::redisserver::RedisClientMode*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::ConnectionDirection*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::MarkAsDoneResult*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::ReactorState*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::RpcRetrierState*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::BackoffStrategy*) Unexecuted instantiation: yb::client::internal::MapSize(yb::client::internal::LocalityLevel*) Unexecuted instantiation: redis_service.cc:yb::redisserver::(anonymous namespace)::MapSize(yb::redisserver::(anonymous namespace)::OperationType*) Unexecuted instantiation: yb::tserver::MapSize(yb::tserver::PgClientSessionKind*) Unexecuted instantiation: yb::client::internal::MapSize(yb::client::internal::BatcherState*) Unexecuted instantiation: yb::MapSize(yb::TransactionErrorCode*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::CreateIntentsCheckpointIn*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::RejectMode*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::LeaderLeaseCheckMode*) Unexecuted instantiation: yb::client::MapSize(yb::client::ClientErrorCode*) Unexecuted instantiation: audit_logger.cc:yb::ql::audit::(anonymous namespace)::MapSize(yb::ql::audit::(anonymous namespace)::Category*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::RemoveReason*) Unexecuted instantiation: yb::tablet::MapSize(yb::tablet::UpdateAbortCheckHTMode*) Unexecuted instantiation: yb::docdb::MapSize(yb::docdb::TransactionDumpOp*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::AnyFields*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::RefinedStreamState*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::LocalSide*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::RemoteMethodPBFields*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::RequestHeaderFields*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::ResponseHeaderFields*) Unexecuted instantiation: yb::rpc::MapSize(yb::rpc::ErrorStatusPBFields*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::ElectionVote*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag*) Unexecuted instantiation: yb::consensus::MapSize(yb::consensus::OperationMode*) Unexecuted instantiation: yb::master::enterprise::MapSize(yb::master::enterprise::CreateObjects*) Unexecuted instantiation: yb::master::MapSize(yb::master::TServersViewType*) Unexecuted instantiation: yb::master::MapSize(yb::master::SnapshotScheduleOperationType*) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::MapSize(yb::master::(anonymous namespace)::Bound*) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::MapSize(yb::master::(anonymous namespace)::RestorePhase*) Unexecuted instantiation: transaction.cc:yb::client::(anonymous namespace)::MapSize(yb::client::(anonymous namespace)::TransactionState*) Unexecuted instantiation: yb::client::MapSize(yb::client::MetadataState*) Unexecuted instantiation: yb::pggate::MapSize(yb::pggate::PgIsolationLevel*) Unexecuted instantiation: pg_session.cc:yb::pggate::(anonymous namespace)::MapSize(yb::pggate::(anonymous namespace)::SessionType*) Unexecuted instantiation: yb::load_generator::MapSize(yb::load_generator::ReadStatus*) Unexecuted instantiation: yb::load_generator::MapSize(yb::load_generator::MultiThreadedReaderOption*) Unexecuted instantiation: yb::redisserver::MapSize(yb::redisserver::RedisReplyType*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::AddRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::AddRequestPartialPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::AddResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::SleepRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::SendStringsRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::EchoRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::EchoResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::WhoAmIResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::CalculatorErrorFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::PingRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::PingResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::ForwardRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::ForwardResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::ConcatRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::ConcatResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::LightweightSubMessagePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::LightweightPairPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::LightweightRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::LightweightResponsePBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::TrivialRequestPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::TrivialErrorPBFields*) Unexecuted instantiation: yb::rpc_test::MapSize(yb::rpc_test::TrivialResponsePBFields*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::BgTaskType*) Unexecuted instantiation: rocksdb::MapSize(rocksdb::TimeoutCode*) Unexecuted instantiation: yb::cdc::MapSize(yb::cdc::OpType*) Unexecuted instantiation: priority_thread_pool.cc:yb::(anonymous namespace)::MapSize(yb::(anonymous namespace)::PriorityThreadPoolTaskState*) Unexecuted instantiation: stack_trace.cc:yb::(anonymous namespace)::MapSize(yb::(anonymous namespace)::ThreadStackState*) Unexecuted instantiation: yb::MapSize(yb::OpIdPBFields*) Unexecuted instantiation: cql_operation.cc:yb::docdb::(anonymous namespace)::MapSize(yb::docdb::(anonymous namespace)::ValueState*) Unexecuted instantiation: transaction_status_cache.cc:yb::docdb::(anonymous namespace)::MapSize(yb::docdb::(anonymous namespace)::CommitTimeSource*) Unexecuted instantiation: yb::MapSize(yb::TaskStreamRunState*) |
122 | 7.15M | constexpr __attribute__((unused)) auto List(enum_name*) { \ |
123 | 7.15M | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ |
124 | 7.15M | } \ Unexecuted instantiation: yb::client::List(yb::client::GrantRevokeStatementType*) Unexecuted instantiation: yb::master::List(yb::master::CollectFlag*) Unexecuted instantiation: yb::rpc::List(yb::rpc::ServicePriority*) Unexecuted instantiation: yb::rpc::List(yb::rpc::InvokeCallbackMode*) Unexecuted instantiation: yb::List(yb::ThreadPoolTokenState*) Unexecuted instantiation: yb::List(yb::BinaryOutputFormat*) Unexecuted instantiation: yb::List(yb::UsePrivateIpMode*) Unexecuted instantiation: yb::docdb::List(yb::docdb::OperationKind*) Unexecuted instantiation: yb::docdb::List(yb::docdb::IntentStrength*) Unexecuted instantiation: yb::docdb::List(yb::docdb::ListExtendOrder*) Unexecuted instantiation: yb::docdb::List(yb::docdb::DocKeyPart*) Unexecuted instantiation: yb::docdb::List(yb::docdb::GetDocPathsMode*) Unexecuted instantiation: yb::docdb::List(yb::docdb::DocOperationType*) Unexecuted instantiation: rocksdb::List(rocksdb::UpdateUserValueType*) Unexecuted instantiation: rocksdb::List(rocksdb::FrontierModificationMode*) Unexecuted instantiation: rocksdb::List(rocksdb::KeyValueEncodingFormat*) Unexecuted instantiation: yb::List(yb::TransactionLoadFlag*) Unexecuted instantiation: yb::List(yb::CleanupType*) Unexecuted instantiation: rocksdb::List(rocksdb::FlushAbility*) Unexecuted instantiation: yb::docdb::List(yb::docdb::ResolvedIntentState*) Unexecuted instantiation: yb::docdb::List(yb::docdb::Direction*) Unexecuted instantiation: yb::docdb::List(yb::docdb::SeekIntentIterNeeded*) Unexecuted instantiation: yb::List(yb::StackTraceGroup*) Unexecuted instantiation: yb::rpc::List(yb::rpc::ResolveState*) Unexecuted instantiation: yb::docdb::List(yb::docdb::ValueType*) Unexecuted instantiation: yb::docdb::List(yb::docdb::StorageDbType*) Unexecuted instantiation: yb::docdb::List(yb::docdb::KeyType*) Unexecuted instantiation: yb::docdb::List(yb::docdb::BoundType*) Unexecuted instantiation: yb::List(yb::WriteBatchFieldKind*) Unexecuted instantiation: yb::List(yb::WriteBatchOutputFormat*) Unexecuted instantiation: yb::docdb::List(yb::docdb::ValueRefType*) Unexecuted instantiation: yb::docdb::List(yb::docdb::InitMarkerBehavior*) Unexecuted instantiation: rocksdb::List(rocksdb::UpdateBoundariesType*) Unexecuted instantiation: rocksdb::List(rocksdb::FilterDecision*) Unexecuted instantiation: yb::List(yb::SubprocessState*) Unexecuted instantiation: yb::List(yb::SubprocessStreamMode*) Unexecuted instantiation: yb::tools::List(yb::tools::DataPatcherAction*) Unexecuted instantiation: yb::consensus::List(yb::consensus::LeaderStatus*) Unexecuted instantiation: rocksdb::List(rocksdb::IndexType*) Unexecuted instantiation: yb::tablet::List(yb::tablet::FlushMode*) Unexecuted instantiation: yb::tablet::List(yb::tablet::RequireLease*) Unexecuted instantiation: rocksdb::List(rocksdb::FlushState*) Unexecuted instantiation: rocksdb::List(rocksdb::InsertFlag*) Unexecuted instantiation: rocksdb::List(rocksdb::BlockType*) Unexecuted instantiation: yb::tools::List(yb::tools::FileType*) Unexecuted instantiation: yb::server::List(yb::server::SecureContextType*) Unexecuted instantiation: yb::tools::enterprise::List(yb::tools::enterprise::ListSnapshotsFlag*) Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::List(yb::tools::(anonymous namespace)::AddIndexes*) Unexecuted instantiation: yb-admin_cli.cc:yb::tools::(anonymous namespace)::List(yb::tools::(anonymous namespace)::ListTabletsFlags*) Unexecuted instantiation: rocksdb::List(rocksdb::OutputFormat*) Unexecuted instantiation: yb::List(yb::ListPeersFilter*) Unexecuted instantiation: yb::List(yb::Connectivity*) Unexecuted instantiation: yb::rpc::List(yb::rpc::TransferState*) Unexecuted instantiation: yb::pgwrapper::List(yb::pgwrapper::PgProcessState*) Unexecuted instantiation: yb::tserver::List(yb::tserver::TabletDirType*) Unexecuted instantiation: yb::client::List(yb::client::OpGroup*) Unexecuted instantiation: yb::log::List(yb::log::SegmentAllocationState*) Unexecuted instantiation: yb::client::List(yb::client::WriteOpType*) Unexecuted instantiation: yb::master::List(yb::master::GetTablesMode*) Unexecuted instantiation: yb::consensus::List(yb::consensus::ElectionMode*) Unexecuted instantiation: yb::consensus::List(yb::consensus::StateChangeReason*) Unexecuted instantiation: yb::consensus::List(yb::consensus::RequestTriggerMode*) Unexecuted instantiation: yb::server::List(yb::server::MonitoredTaskState*) Unexecuted instantiation: yb::tablet::List(yb::tablet::SafeTimeSource*) Unexecuted instantiation: yb::tablet::List(yb::tablet::OperationType*) Unexecuted instantiation: yb::ql::List(yb::ql::TreeNodeOpcode*) Unexecuted instantiation: pt_select.cc:yb::ql::(anonymous namespace)::List(yb::ql::(anonymous namespace)::OpSelectivity*) Unexecuted instantiation: yb::bfql::List(yb::bfql::ConvertDecimalVia*) Unexecuted instantiation: yb::redisserver::List(yb::redisserver::RedisClientMode*) Unexecuted instantiation: yb::rpc::List(yb::rpc::ConnectionDirection*) Unexecuted instantiation: yb::rpc::List(yb::rpc::MarkAsDoneResult*) Unexecuted instantiation: yb::rpc::List(yb::rpc::ReactorState*) Unexecuted instantiation: yb::rpc::List(yb::rpc::RpcRetrierState*) Unexecuted instantiation: yb::rpc::List(yb::rpc::BackoffStrategy*) Unexecuted instantiation: yb::client::internal::List(yb::client::internal::LocalityLevel*) Unexecuted instantiation: redis_service.cc:yb::redisserver::(anonymous namespace)::List(yb::redisserver::(anonymous namespace)::OperationType*) Unexecuted instantiation: yb::tserver::List(yb::tserver::PgClientSessionKind*) Unexecuted instantiation: yb::client::internal::List(yb::client::internal::BatcherState*) Unexecuted instantiation: yb::List(yb::TransactionErrorCode*) Unexecuted instantiation: yb::tablet::List(yb::tablet::CreateIntentsCheckpointIn*) Unexecuted instantiation: yb::consensus::List(yb::consensus::RejectMode*) Unexecuted instantiation: yb::consensus::List(yb::consensus::LeaderLeaseCheckMode*) Unexecuted instantiation: yb::client::List(yb::client::ClientErrorCode*) Unexecuted instantiation: audit_logger.cc:yb::ql::audit::(anonymous namespace)::List(yb::ql::audit::(anonymous namespace)::Category*) Unexecuted instantiation: yb::tablet::List(yb::tablet::RemoveReason*) Unexecuted instantiation: yb::tablet::List(yb::tablet::UpdateAbortCheckHTMode*) Unexecuted instantiation: yb::docdb::List(yb::docdb::TransactionDumpOp*) Unexecuted instantiation: yb::rpc::List(yb::rpc::AnyFields*) Unexecuted instantiation: yb::rpc::List(yb::rpc::RefinedStreamState*) Unexecuted instantiation: yb::rpc::List(yb::rpc::LocalSide*) Unexecuted instantiation: yb::rpc::List(yb::rpc::RemoteMethodPBFields*) Unexecuted instantiation: yb::rpc::List(yb::rpc::RequestHeaderFields*) Unexecuted instantiation: yb::rpc::List(yb::rpc::ResponseHeaderFields*) Unexecuted instantiation: yb::rpc::List(yb::rpc::ErrorStatusPBFields*) Unexecuted instantiation: yb::consensus::List(yb::consensus::ElectionVote*) Unexecuted instantiation: yb::consensus::List(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag*) Unexecuted instantiation: yb::consensus::List(yb::consensus::OperationMode*) Unexecuted instantiation: yb::master::enterprise::List(yb::master::enterprise::CreateObjects*) Unexecuted instantiation: yb::master::List(yb::master::TServersViewType*) Unexecuted instantiation: yb::master::List(yb::master::SnapshotScheduleOperationType*) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::List(yb::master::(anonymous namespace)::Bound*) Unexecuted instantiation: master_snapshot_coordinator.cc:yb::master::(anonymous namespace)::List(yb::master::(anonymous namespace)::RestorePhase*) Unexecuted instantiation: transaction.cc:yb::client::(anonymous namespace)::List(yb::client::(anonymous namespace)::TransactionState*) Unexecuted instantiation: yb::client::List(yb::client::MetadataState*) yb::docdb::List(yb::docdb::IntentType*) Line | Count | Source | 122 | 7.14M | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 7.14M | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 7.14M | } \ |
Unexecuted instantiation: yb::pggate::List(yb::pggate::PgIsolationLevel*) Unexecuted instantiation: pg_session.cc:yb::pggate::(anonymous namespace)::List(yb::pggate::(anonymous namespace)::SessionType*) Unexecuted instantiation: yb::load_generator::List(yb::load_generator::ReadStatus*) Unexecuted instantiation: yb::load_generator::List(yb::load_generator::MultiThreadedReaderOption*) Unexecuted instantiation: yb::redisserver::List(yb::redisserver::RedisReplyType*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::AddRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::AddRequestPartialPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::AddResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::SleepRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::SendStringsRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::EchoRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::EchoResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::WhoAmIResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::CalculatorErrorFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::PingRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::PingResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::ForwardRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::ForwardResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::ConcatRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::ConcatResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::LightweightSubMessagePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::LightweightPairPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::LightweightRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::LightweightResponsePBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::TrivialRequestPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::TrivialErrorPBFields*) Unexecuted instantiation: yb::rpc_test::List(yb::rpc_test::TrivialResponsePBFields*) Unexecuted instantiation: rocksdb::List(rocksdb::BgTaskType*) Unexecuted instantiation: rocksdb::List(rocksdb::TimeoutCode*) Unexecuted instantiation: yb::cdc::List(yb::cdc::OpType*) Line | Count | Source | 122 | 2.31k | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 2.31k | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 2.31k | } \ |
Unexecuted instantiation: priority_thread_pool.cc:yb::(anonymous namespace)::List(yb::(anonymous namespace)::PriorityThreadPoolTaskState*) Unexecuted instantiation: stack_trace.cc:yb::(anonymous namespace)::List(yb::(anonymous namespace)::ThreadStackState*) Unexecuted instantiation: yb::List(yb::OpIdPBFields*) yb::docdb::List(yb::docdb::RateLimiterSharingMode*) Line | Count | Source | 122 | 8.75k | constexpr __attribute__((unused)) auto List(enum_name*) { \ | 123 | 8.75k | return BOOST_PP_CAT(k, BOOST_PP_CAT(enum_name, List)); \ | 124 | 8.75k | } \ |
Unexecuted instantiation: cql_operation.cc:yb::docdb::(anonymous namespace)::List(yb::docdb::(anonymous namespace)::ValueState*) Unexecuted instantiation: transaction_status_cache.cc:yb::docdb::(anonymous namespace)::List(yb::docdb::(anonymous namespace)::CommitTimeSource*) Unexecuted instantiation: yb::List(yb::TaskStreamRunState*) |
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 | 3 | std::string GetTypeName() { |
178 | 3 | char const* type_name = typeid(T).name(); |
179 | 3 | boost::core::scoped_demangled_name type_name_demangled(type_name); |
180 | | |
181 | | // From https://stackoverflow.com/questions/1488186/stringifying-template-arguments: |
182 | 3 | return type_name_demangled.get() ? type_name_demangled.get() : type_name0 ; |
183 | 3 | } Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::DataType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<rocksdb::KeyValueEncodingFormat>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tools::FileType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::Env::FileType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tools::DataPatcherAction>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<rocksdb::UpdateUserValueType>() Unexecuted instantiation: redis_service.cc:std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::redisserver::(anonymous namespace)::OperationType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tserver::ReadTimeManipulation>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::consensus::LeaderStatus>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tserver::TabletDirType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::GrantRevokeStatementType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::ql::TreeNodeOpcode>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<rapidjson::Type>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::TransactionStatus>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::StorageDbType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::TableType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tablet::OperationType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::consensus::OperationType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tserver::TabletSnapshotOpRequestPB_Operation>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::tablet::WriteQuery::ExecuteMode>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::rpc::ServicePriority>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::rpc::InvokeCallbackMode>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::rpc::RefinedStreamState>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::consensus::PeerMessageQueue::Mode>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::consensus::PeerMessageQueue::State>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::consensus::LeaderLeaseStatus>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::master::SysNamespaceEntryPB_State>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::master::GetTablesMode>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::master::SysSnapshotEntryPB_State>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::master::SysRowEntryType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::OpGroup>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::ClientErrorCode>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::YBClient::ReplicaSelection>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::YBTableType>() Unexecuted instantiation: transaction.cc:std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::(anonymous namespace)::TransactionState>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::TransactionLocality>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::WriteOpType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::client::kv_table_test::Partitioning>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::DocKeyPart>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::QLVirtualValuePB>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::ValueType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::QLValuePB::ValueCase>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::OperationKind>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::IsolationLevel>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::ListPeersFilter>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::Connectivity>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::QLResponsePB_QLStatus>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<rocksdb::BlockType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<rocksdb::SubCacheType>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::BinaryOutputFormat>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::AggregationFunction>() Unexecuted instantiation: priority_thread_pool.cc:std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::(anonymous namespace)::PriorityThreadPoolTaskState>() std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::RateLimiterSharingMode>() Line | Count | Source | 177 | 3 | std::string GetTypeName() { | 178 | 3 | char const* type_name = typeid(T).name(); | 179 | 3 | boost::core::scoped_demangled_name type_name_demangled(type_name); | 180 | | | 181 | | // From https://stackoverflow.com/questions/1488186/stringifying-template-arguments: | 182 | 3 | return type_name_demangled.get() ? type_name_demangled.get() : type_name0 ; | 183 | 3 | } |
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::SeekIntentIterNeeded>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > yb::GetTypeName<yb::docdb::KeyType>() |
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 | 1.12M | size_t operator()(T t) const { |
197 | 1.12M | return to_underlying(t); |
198 | 1.12M | } |
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.83M | EnumBitSetIterator(ImplIterator iter, const BitSet* set) : iter_(iter), set_(set) { |
212 | 1.83M | FindSetBit(); |
213 | 1.83M | } Unexecuted instantiation: yb::EnumBitSetIterator<yb::TransactionLoadFlag>::EnumBitSetIterator(yb::TransactionLoadFlag const*, std::__1::bitset<2ul> const*) yb::EnumBitSetIterator<yb::docdb::IntentType>::EnumBitSetIterator(yb::docdb::IntentType const*, std::__1::bitset<4ul> const*) Line | Count | Source | 211 | 1.83M | EnumBitSetIterator(ImplIterator iter, const BitSet* set) : iter_(iter), set_(set) { | 212 | 1.83M | FindSetBit(); | 213 | 1.83M | } |
yb::EnumBitSetIterator<yb::StdFdType>::EnumBitSetIterator(yb::StdFdType const*, std::__1::bitset<3ul> const*) Line | Count | Source | 211 | 660 | EnumBitSetIterator(ImplIterator iter, const BitSet* set) : iter_(iter), set_(set) { | 212 | 660 | FindSetBit(); | 213 | 660 | } |
|
214 | | |
215 | 1.72M | Enum operator*() const { |
216 | 1.72M | return *iter_; |
217 | 1.72M | } Unexecuted instantiation: yb::EnumBitSetIterator<yb::TransactionLoadFlag>::operator*() const yb::EnumBitSetIterator<yb::docdb::IntentType>::operator*() const Line | Count | Source | 215 | 1.72M | Enum operator*() const { | 216 | 1.72M | return *iter_; | 217 | 1.72M | } |
yb::EnumBitSetIterator<yb::StdFdType>::operator*() const Line | Count | Source | 215 | 482 | Enum operator*() const { | 216 | 482 | return *iter_; | 217 | 482 | } |
|
218 | | |
219 | 1.63M | EnumBitSetIterator& operator++() { |
220 | 1.63M | ++iter_; |
221 | 1.63M | FindSetBit(); |
222 | 1.63M | return *this; |
223 | 1.63M | } Unexecuted instantiation: yb::EnumBitSetIterator<yb::TransactionLoadFlag>::operator++() yb::EnumBitSetIterator<yb::docdb::IntentType>::operator++() Line | Count | Source | 219 | 1.63M | EnumBitSetIterator& operator++() { | 220 | 1.63M | ++iter_; | 221 | 1.63M | FindSetBit(); | 222 | 1.63M | return *this; | 223 | 1.63M | } |
yb::EnumBitSetIterator<yb::StdFdType>::operator++() Line | Count | Source | 219 | 482 | EnumBitSetIterator& operator++() { | 220 | 482 | ++iter_; | 221 | 482 | FindSetBit(); | 222 | 482 | return *this; | 223 | 482 | } |
|
224 | | |
225 | | EnumBitSetIterator operator++(int) { |
226 | | EnumBitSetIterator result(*this); |
227 | | ++(*this); |
228 | | return result; |
229 | | } |
230 | | |
231 | | private: |
232 | 3.47M | void FindSetBit() { |
233 | 5.30M | while (iter_ != List(static_cast<Enum*>(nullptr)).end() && !set_->test(to_underlying(*iter_))3.55M ) { |
234 | 1.82M | ++iter_; |
235 | 1.82M | } |
236 | 3.47M | } Unexecuted instantiation: yb::EnumBitSetIterator<yb::TransactionLoadFlag>::FindSetBit() yb::EnumBitSetIterator<yb::docdb::IntentType>::FindSetBit() Line | Count | Source | 232 | 3.47M | void FindSetBit() { | 233 | 5.30M | while (iter_ != List(static_cast<Enum*>(nullptr)).end() && !set_->test(to_underlying(*iter_))3.55M ) { | 234 | 1.82M | ++iter_; | 235 | 1.82M | } | 236 | 3.47M | } |
yb::EnumBitSetIterator<yb::StdFdType>::FindSetBit() Line | Count | Source | 232 | 1.14k | void FindSetBit() { | 233 | 1.65k | while (iter_ != List(static_cast<Enum*>(nullptr)).end() && !set_->test(to_underlying(*iter_))990 ) { | 234 | 508 | ++iter_; | 235 | 508 | } | 236 | 1.14k | } |
|
237 | | |
238 | 2.55M | friend bool operator!=(const EnumBitSetIterator<Enum>& lhs, const EnumBitSetIterator<Enum>& rhs) { |
239 | 2.55M | return lhs.iter_ != rhs.iter_; |
240 | 2.55M | } Unexecuted instantiation: yb::operator!=(yb::EnumBitSetIterator<yb::TransactionLoadFlag> const&, yb::EnumBitSetIterator<yb::TransactionLoadFlag> const&) yb::operator!=(yb::EnumBitSetIterator<yb::docdb::IntentType> const&, yb::EnumBitSetIterator<yb::docdb::IntentType> const&) Line | Count | Source | 238 | 2.55M | friend bool operator!=(const EnumBitSetIterator<Enum>& lhs, const EnumBitSetIterator<Enum>& rhs) { | 239 | 2.55M | return lhs.iter_ != rhs.iter_; | 240 | 2.55M | } |
yb::operator!=(yb::EnumBitSetIterator<yb::StdFdType> const&, yb::EnumBitSetIterator<yb::StdFdType> const&) Line | Count | Source | 238 | 812 | friend bool operator!=(const EnumBitSetIterator<Enum>& lhs, const EnumBitSetIterator<Enum>& rhs) { | 239 | 812 | return lhs.iter_ != rhs.iter_; | 240 | 812 | } |
|
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 | 399M | EnumBitSet() = default; yb-admin_cli.cc:yb::EnumBitSet<yb::tools::(anonymous namespace)::ListTabletsFlags>::EnumBitSet() Line | Count | Source | 253 | 7 | EnumBitSet() = default; |
Unexecuted instantiation: yb-admin_cli.cc:yb::EnumBitSet<yb::tools::(anonymous namespace)::AddIndexes>::EnumBitSet() yb::EnumBitSet<yb::tools::enterprise::ListSnapshotsFlag>::EnumBitSet() Line | Count | Source | 253 | 1 | EnumBitSet() = default; |
yb::EnumBitSet<yb::TransactionLoadFlag>::EnumBitSet() Line | Count | Source | 253 | 400k | EnumBitSet() = default; |
yb::EnumBitSet<yb::rpc::AnyFields>::EnumBitSet() Line | Count | Source | 253 | 2 | EnumBitSet() = default; |
yb::EnumBitSet<yb::consensus::SetMajorityReplicatedLeaseExpirationFlag>::EnumBitSet() Line | Count | Source | 253 | 34.7M | EnumBitSet() = default; |
yb::EnumBitSet<yb::master::CollectFlag>::EnumBitSet() Line | Count | Source | 253 | 10 | EnumBitSet() = default; |
yb::EnumBitSet<yb::docdb::IntentType>::EnumBitSet() Line | Count | Source | 253 | 361M | EnumBitSet() = default; |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RemoteMethodPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RequestHeaderFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ResponseHeaderFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ErrorStatusPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPartialPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddResponsePBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SleepRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SendStringsRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoResponsePBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::WhoAmIResponsePBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::CalculatorErrorFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingResponsePBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardResponsePBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatResponsePBFields>::EnumBitSet() yb::EnumBitSet<yb::rpc_test::LightweightSubMessagePBFields>::EnumBitSet() Line | Count | Source | 253 | 30 | EnumBitSet() = default; |
yb::EnumBitSet<yb::rpc_test::LightweightPairPBFields>::EnumBitSet() Line | Count | Source | 253 | 39 | EnumBitSet() = default; |
yb::EnumBitSet<yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields>::EnumBitSet() Line | Count | Source | 253 | 11 | EnumBitSet() = default; |
yb::EnumBitSet<yb::rpc_test::LightweightRequestPBFields>::EnumBitSet() Line | Count | Source | 253 | 2 | EnumBitSet() = default; |
yb::EnumBitSet<yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields>::EnumBitSet() Line | Count | Source | 253 | 11 | EnumBitSet() = default; |
yb::EnumBitSet<yb::rpc_test::LightweightResponsePBFields>::EnumBitSet() Line | Count | Source | 253 | 1 | EnumBitSet() = default; |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialRequestPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialErrorPBFields>::EnumBitSet() Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialResponsePBFields>::EnumBitSet() yb::EnumBitSet<rocksdb::InsertFlag>::EnumBitSet() Line | Count | Source | 253 | 2.95M | EnumBitSet() = default; |
Unexecuted instantiation: yb::EnumBitSet<yb::OpIdPBFields>::EnumBitSet() |
254 | 268M | explicit EnumBitSet(uint64_t value) : impl_(value) {} |
255 | | |
256 | 129M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { |
257 | 206M | for (auto i : inp) { |
258 | 206M | impl_.set(to_underlying(i)); |
259 | 206M | } |
260 | 129M | } yb::EnumBitSet<yb::StdFdType>::EnumBitSet(std::initializer_list<yb::StdFdType> const&) Line | Count | Source | 256 | 229 | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 322 | for (auto i : inp) { | 258 | 322 | impl_.set(to_underlying(i)); | 259 | 322 | } | 260 | 229 | } |
yb::EnumBitSet<yb::TransactionLoadFlag>::EnumBitSet(std::initializer_list<yb::TransactionLoadFlag> const&) Line | Count | Source | 256 | 6.43M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 6.44M | for (auto i : inp) { | 258 | 6.44M | impl_.set(to_underlying(i)); | 259 | 6.44M | } | 260 | 6.43M | } |
yb::EnumBitSet<yb::master::CollectFlag>::EnumBitSet(std::initializer_list<yb::master::CollectFlag> const&) Line | Count | Source | 256 | 41 | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 119 | for (auto i : inp) { | 258 | 119 | impl_.set(to_underlying(i)); | 259 | 119 | } | 260 | 41 | } |
yb::EnumBitSet<yb::docdb::IntentType>::EnumBitSet(std::initializer_list<yb::docdb::IntentType> const&) Line | Count | Source | 256 | 95.3M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 171M | for (auto i : inp) { | 258 | 171M | impl_.set(to_underlying(i)); | 259 | 171M | } | 260 | 95.3M | } |
yb::EnumBitSet<rocksdb::InsertFlag>::EnumBitSet(std::initializer_list<rocksdb::InsertFlag> const&) Line | Count | Source | 256 | 27.9M | explicit EnumBitSet(const std::initializer_list<Enum>& inp) { | 257 | 27.9M | for (auto i : inp) { | 258 | 27.9M | impl_.set(to_underlying(i)); | 259 | 27.9M | } | 260 | 27.9M | } |
|
261 | | |
262 | 222M | bool Test(Enum value) const { |
263 | 222M | return impl_.test(to_underlying(value)); |
264 | 222M | } yb-admin_cli.cc:yb::EnumBitSet<yb::tools::(anonymous namespace)::ListTabletsFlags>::Test(yb::tools::(anonymous namespace)::ListTabletsFlags) const Line | Count | Source | 262 | 12 | bool Test(Enum value) const { | 263 | 12 | return impl_.test(to_underlying(value)); | 264 | 12 | } |
Unexecuted instantiation: yb-admin_cli.cc:yb::EnumBitSet<yb::tools::(anonymous namespace)::AddIndexes>::Test(yb::tools::(anonymous namespace)::AddIndexes) const yb::EnumBitSet<yb::TransactionLoadFlag>::Test(yb::TransactionLoadFlag) const Line | Count | Source | 262 | 3.18k | bool Test(Enum value) const { | 263 | 3.18k | return impl_.test(to_underlying(value)); | 264 | 3.18k | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc::AnyFields>::Test(yb::rpc::AnyFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RemoteMethodPBFields>::Test(yb::rpc::RemoteMethodPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RequestHeaderFields>::Test(yb::rpc::RequestHeaderFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ResponseHeaderFields>::Test(yb::rpc::ResponseHeaderFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ErrorStatusPBFields>::Test(yb::rpc::ErrorStatusPBFields) const yb::EnumBitSet<yb::consensus::SetMajorityReplicatedLeaseExpirationFlag>::Test(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag) const Line | Count | Source | 262 | 69.5M | bool Test(Enum value) const { | 263 | 69.5M | return impl_.test(to_underlying(value)); | 264 | 69.5M | } |
yb::EnumBitSet<yb::master::CollectFlag>::Test(yb::master::CollectFlag) const Line | Count | Source | 262 | 127 | bool Test(Enum value) const { | 263 | 127 | return impl_.test(to_underlying(value)); | 264 | 127 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::load_generator::MultiThreadedReaderOption>::Test(yb::load_generator::MultiThreadedReaderOption) const yb::EnumBitSet<yb::tools::enterprise::ListSnapshotsFlag>::Test(yb::tools::enterprise::ListSnapshotsFlag) const Line | Count | Source | 262 | 3 | bool Test(Enum value) const { | 263 | 3 | return impl_.test(to_underlying(value)); | 264 | 3 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPBFields>::Test(yb::rpc_test::AddRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPartialPBFields>::Test(yb::rpc_test::AddRequestPartialPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddResponsePBFields>::Test(yb::rpc_test::AddResponsePBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SleepRequestPBFields>::Test(yb::rpc_test::SleepRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SendStringsRequestPBFields>::Test(yb::rpc_test::SendStringsRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoRequestPBFields>::Test(yb::rpc_test::EchoRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoResponsePBFields>::Test(yb::rpc_test::EchoResponsePBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::WhoAmIResponsePBFields>::Test(yb::rpc_test::WhoAmIResponsePBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::CalculatorErrorFields>::Test(yb::rpc_test::CalculatorErrorFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingRequestPBFields>::Test(yb::rpc_test::PingRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingResponsePBFields>::Test(yb::rpc_test::PingResponsePBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardRequestPBFields>::Test(yb::rpc_test::ForwardRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardResponsePBFields>::Test(yb::rpc_test::ForwardResponsePBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatRequestPBFields>::Test(yb::rpc_test::ConcatRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatResponsePBFields>::Test(yb::rpc_test::ConcatResponsePBFields) const yb::EnumBitSet<yb::rpc_test::LightweightSubMessagePBFields>::Test(yb::rpc_test::LightweightSubMessagePBFields) const Line | Count | Source | 262 | 318 | bool Test(Enum value) const { | 263 | 318 | return impl_.test(to_underlying(value)); | 264 | 318 | } |
yb::EnumBitSet<yb::rpc_test::LightweightPairPBFields>::Test(yb::rpc_test::LightweightPairPBFields) const Line | Count | Source | 262 | 260 | bool Test(Enum value) const { | 263 | 260 | return impl_.test(to_underlying(value)); | 264 | 260 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields>::Test(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields) const yb::EnumBitSet<yb::rpc_test::LightweightRequestPBFields>::Test(yb::rpc_test::LightweightRequestPBFields) const Line | Count | Source | 262 | 51 | bool Test(Enum value) const { | 263 | 51 | return impl_.test(to_underlying(value)); | 264 | 51 | } |
yb::EnumBitSet<yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields>::Test(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields) const Line | Count | Source | 262 | 66 | bool Test(Enum value) const { | 263 | 66 | return impl_.test(to_underlying(value)); | 264 | 66 | } |
yb::EnumBitSet<yb::rpc_test::LightweightResponsePBFields>::Test(yb::rpc_test::LightweightResponsePBFields) const Line | Count | Source | 262 | 119 | bool Test(Enum value) const { | 263 | 119 | return impl_.test(to_underlying(value)); | 264 | 119 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialRequestPBFields>::Test(yb::rpc_test::TrivialRequestPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialErrorPBFields>::Test(yb::rpc_test::TrivialErrorPBFields) const Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialResponsePBFields>::Test(yb::rpc_test::TrivialResponsePBFields) const yb::EnumBitSet<rocksdb::InsertFlag>::Test(rocksdb::InsertFlag) const Line | Count | Source | 262 | 70.6M | bool Test(Enum value) const { | 263 | 70.6M | return impl_.test(to_underlying(value)); | 264 | 70.6M | } |
yb::EnumBitSet<yb::StdFdType>::Test(yb::StdFdType) const Line | Count | Source | 262 | 229 | bool Test(Enum value) const { | 263 | 229 | return impl_.test(to_underlying(value)); | 264 | 229 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::OpIdPBFields>::Test(yb::OpIdPBFields) const yb::EnumBitSet<yb::docdb::IntentType>::Test(yb::docdb::IntentType) const Line | Count | Source | 262 | 82.6M | bool Test(Enum value) const { | 263 | 82.6M | return impl_.test(to_underlying(value)); | 264 | 82.6M | } |
|
265 | | |
266 | 398M | uintptr_t ToUIntPtr() const { |
267 | 398M | return impl_.to_ulong(); |
268 | 398M | } |
269 | | |
270 | 175M | bool None() const { |
271 | 175M | return impl_.none(); |
272 | 175M | } |
273 | | |
274 | 62.9M | bool Any() const { |
275 | 62.9M | return impl_.any(); |
276 | 62.9M | } |
277 | | |
278 | | bool All() const { |
279 | | return impl_.all(); |
280 | | } |
281 | | |
282 | 21.2k | EnumBitSet& Set(Enum value, bool val = true) { |
283 | 21.2k | impl_.set(to_underlying(value), val); |
284 | 21.2k | return *this; |
285 | 21.2k | } yb-admin_cli.cc:yb::EnumBitSet<yb::tools::(anonymous namespace)::ListTabletsFlags>::Set(yb::tools::(anonymous namespace)::ListTabletsFlags, bool) Line | Count | Source | 282 | 6 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 6 | impl_.set(to_underlying(value), val); | 284 | 6 | return *this; | 285 | 6 | } |
Unexecuted instantiation: yb-admin_cli.cc:yb::EnumBitSet<yb::tools::(anonymous namespace)::AddIndexes>::Set(yb::tools::(anonymous namespace)::AddIndexes, bool) yb::EnumBitSet<yb::tools::enterprise::ListSnapshotsFlag>::Set(yb::tools::enterprise::ListSnapshotsFlag, bool) Line | Count | Source | 282 | 1 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 1 | impl_.set(to_underlying(value), val); | 284 | 1 | return *this; | 285 | 1 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc::AnyFields>::Set(yb::rpc::AnyFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RemoteMethodPBFields>::Set(yb::rpc::RemoteMethodPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RequestHeaderFields>::Set(yb::rpc::RequestHeaderFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ResponseHeaderFields>::Set(yb::rpc::ResponseHeaderFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ErrorStatusPBFields>::Set(yb::rpc::ErrorStatusPBFields, bool) yb::EnumBitSet<yb::consensus::SetMajorityReplicatedLeaseExpirationFlag>::Set(yb::consensus::SetMajorityReplicatedLeaseExpirationFlag, bool) Line | Count | Source | 282 | 20.9k | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 20.9k | impl_.set(to_underlying(value), val); | 284 | 20.9k | return *this; | 285 | 20.9k | } |
Unexecuted instantiation: yb::EnumBitSet<yb::docdb::IntentType>::Set(yb::docdb::IntentType, bool) yb::EnumBitSet<yb::rpc_test::LightweightResponsePBFields>::Set(yb::rpc_test::LightweightResponsePBFields, bool) 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 | } |
yb::EnumBitSet<yb::rpc_test::LightweightSubMessagePBFields>::Set(yb::rpc_test::LightweightSubMessagePBFields, bool) Line | Count | Source | 282 | 60 | EnumBitSet& Set(Enum value, bool val = true) { | 283 | 60 | impl_.set(to_underlying(value), val); | 284 | 60 | return *this; | 285 | 60 | } |
yb::EnumBitSet<yb::rpc_test::LightweightPairPBFields>::Set(yb::rpc_test::LightweightPairPBFields, bool) 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 | } |
yb::EnumBitSet<yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields>::Set(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields, bool) 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 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPBFields>::Set(yb::rpc_test::AddRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPartialPBFields>::Set(yb::rpc_test::AddRequestPartialPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddResponsePBFields>::Set(yb::rpc_test::AddResponsePBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SleepRequestPBFields>::Set(yb::rpc_test::SleepRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SendStringsRequestPBFields>::Set(yb::rpc_test::SendStringsRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoRequestPBFields>::Set(yb::rpc_test::EchoRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoResponsePBFields>::Set(yb::rpc_test::EchoResponsePBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::WhoAmIResponsePBFields>::Set(yb::rpc_test::WhoAmIResponsePBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::CalculatorErrorFields>::Set(yb::rpc_test::CalculatorErrorFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingRequestPBFields>::Set(yb::rpc_test::PingRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingResponsePBFields>::Set(yb::rpc_test::PingResponsePBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardRequestPBFields>::Set(yb::rpc_test::ForwardRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardResponsePBFields>::Set(yb::rpc_test::ForwardResponsePBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatRequestPBFields>::Set(yb::rpc_test::ConcatRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatResponsePBFields>::Set(yb::rpc_test::ConcatResponsePBFields, bool) yb::EnumBitSet<yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields>::Set(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields, bool) 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 | } |
yb::EnumBitSet<yb::rpc_test::LightweightRequestPBFields>::Set(yb::rpc_test::LightweightRequestPBFields, bool) 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: yb::EnumBitSet<yb::rpc_test::TrivialRequestPBFields>::Set(yb::rpc_test::TrivialRequestPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialErrorPBFields>::Set(yb::rpc_test::TrivialErrorPBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialResponsePBFields>::Set(yb::rpc_test::TrivialResponsePBFields, bool) Unexecuted instantiation: yb::EnumBitSet<yb::OpIdPBFields>::Set(yb::OpIdPBFields, bool) |
286 | | |
287 | 48 | EnumBitSet& Reset(Enum value) { |
288 | 48 | impl_.reset(to_underlying(value)); |
289 | 48 | return *this; |
290 | 48 | } yb::EnumBitSet<yb::rpc::AnyFields>::Reset(yb::rpc::AnyFields) Line | Count | Source | 287 | 2 | EnumBitSet& Reset(Enum value) { | 288 | 2 | impl_.reset(to_underlying(value)); | 289 | 2 | return *this; | 290 | 2 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RemoteMethodPBFields>::Reset(yb::rpc::RemoteMethodPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::RequestHeaderFields>::Reset(yb::rpc::RequestHeaderFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ResponseHeaderFields>::Reset(yb::rpc::ResponseHeaderFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc::ErrorStatusPBFields>::Reset(yb::rpc::ErrorStatusPBFields) yb::EnumBitSet<yb::master::CollectFlag>::Reset(yb::master::CollectFlag) Line | Count | Source | 287 | 45 | EnumBitSet& Reset(Enum value) { | 288 | 45 | impl_.reset(to_underlying(value)); | 289 | 45 | return *this; | 290 | 45 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPBFields>::Reset(yb::rpc_test::AddRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddRequestPartialPBFields>::Reset(yb::rpc_test::AddRequestPartialPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::AddResponsePBFields>::Reset(yb::rpc_test::AddResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SleepRequestPBFields>::Reset(yb::rpc_test::SleepRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::SendStringsRequestPBFields>::Reset(yb::rpc_test::SendStringsRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoRequestPBFields>::Reset(yb::rpc_test::EchoRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::EchoResponsePBFields>::Reset(yb::rpc_test::EchoResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::WhoAmIResponsePBFields>::Reset(yb::rpc_test::WhoAmIResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::CalculatorErrorFields>::Reset(yb::rpc_test::CalculatorErrorFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingRequestPBFields>::Reset(yb::rpc_test::PingRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::PingResponsePBFields>::Reset(yb::rpc_test::PingResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardRequestPBFields>::Reset(yb::rpc_test::ForwardRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ForwardResponsePBFields>::Reset(yb::rpc_test::ForwardResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatRequestPBFields>::Reset(yb::rpc_test::ConcatRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::ConcatResponsePBFields>::Reset(yb::rpc_test::ConcatResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::LightweightSubMessagePBFields>::Reset(yb::rpc_test::LightweightSubMessagePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::LightweightPairPBFields>::Reset(yb::rpc_test::LightweightPairPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields>::Reset(yb::rpc_test::LightweightRequestPB_MapEntry_DoNotUseFields) yb::EnumBitSet<yb::rpc_test::LightweightRequestPBFields>::Reset(yb::rpc_test::LightweightRequestPBFields) Line | Count | Source | 287 | 1 | EnumBitSet& Reset(Enum value) { | 288 | 1 | impl_.reset(to_underlying(value)); | 289 | 1 | return *this; | 290 | 1 | } |
Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields>::Reset(yb::rpc_test::LightweightResponsePB_MapEntry_DoNotUseFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::LightweightResponsePBFields>::Reset(yb::rpc_test::LightweightResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialRequestPBFields>::Reset(yb::rpc_test::TrivialRequestPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialErrorPBFields>::Reset(yb::rpc_test::TrivialErrorPBFields) Unexecuted instantiation: yb::EnumBitSet<yb::rpc_test::TrivialResponsePBFields>::Reset(yb::rpc_test::TrivialResponsePBFields) Unexecuted instantiation: yb::EnumBitSet<yb::OpIdPBFields>::Reset(yb::OpIdPBFields) |
291 | | |
292 | 22 | EnumBitSet& SetIf(Enum value, bool do_it) { |
293 | 22 | if (do_it) { |
294 | 4 | impl_.set(to_underlying(value)); |
295 | 4 | } |
296 | 22 | return *this; |
297 | 22 | } |
298 | | |
299 | 918k | const_iterator begin() const { |
300 | 918k | return const_iterator(List(static_cast<Enum*>(nullptr)).begin(), &impl_); |
301 | 918k | } Unexecuted instantiation: yb::EnumBitSet<yb::TransactionLoadFlag>::begin() const yb::EnumBitSet<yb::docdb::IntentType>::begin() const Line | Count | Source | 299 | 918k | const_iterator begin() const { | 300 | 918k | return const_iterator(List(static_cast<Enum*>(nullptr)).begin(), &impl_); | 301 | 918k | } |
yb::EnumBitSet<yb::StdFdType>::begin() const Line | Count | Source | 299 | 330 | const_iterator begin() const { | 300 | 330 | return const_iterator(List(static_cast<Enum*>(nullptr)).begin(), &impl_); | 301 | 330 | } |
|
302 | | |
303 | 918k | const_iterator end() const { |
304 | 918k | return const_iterator(List(static_cast<Enum*>(nullptr)).end(), &impl_); |
305 | 918k | } Unexecuted instantiation: yb::EnumBitSet<yb::TransactionLoadFlag>::end() const yb::EnumBitSet<yb::docdb::IntentType>::end() const Line | Count | Source | 303 | 918k | const_iterator end() const { | 304 | 918k | return const_iterator(List(static_cast<Enum*>(nullptr)).end(), &impl_); | 305 | 918k | } |
yb::EnumBitSet<yb::StdFdType>::end() const Line | Count | Source | 303 | 330 | const_iterator end() const { | 304 | 330 | return const_iterator(List(static_cast<Enum*>(nullptr)).end(), &impl_); | 305 | 330 | } |
|
306 | | |
307 | 181M | EnumBitSet<Enum>& operator|=(const EnumBitSet& rhs) { |
308 | 181M | impl_ |= rhs.impl_; |
309 | 181M | return *this; |
310 | 181M | } |
311 | | |
312 | | EnumBitSet<Enum>& operator&=(const EnumBitSet& rhs) { |
313 | | impl_ &= rhs.impl_; |
314 | | return *this; |
315 | | } |
316 | | |
317 | | bool operator==(const EnumBitSet<Enum>& rhs) const { |
318 | | return impl_ == rhs.impl_; |
319 | | } |
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 | } |
328 | | |
329 | | bool operator>(const EnumBitSet<Enum>& rhs) const { |
330 | | return impl_.to_ullong() > rhs.impl_.to_ullong(); |
331 | | } |
332 | | |
333 | | private: |
334 | | std::bitset<MapSize(static_cast<Enum*>(nullptr))> impl_; |
335 | | |
336 | 237M | friend EnumBitSet<Enum> operator&(const EnumBitSet& lhs, const EnumBitSet& rhs) { |
337 | 237M | EnumBitSet<Enum> result; |
338 | 237M | result.impl_ = lhs.impl_ & rhs.impl_; |
339 | 237M | return result; |
340 | 237M | } |
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 | 8.75k | Result<EnumType> ParseEnumInsensitive(const char* str) { |
352 | 17.5k | for (auto value : List(static_cast<EnumType*>(nullptr))) { |
353 | 17.5k | if (boost::iequals(ToCString(value), str)) { |
354 | 8.75k | return value; |
355 | 8.75k | } |
356 | 17.5k | } |
357 | 3 | return STATUS_FORMAT(InvalidArgument, "$0 invalid value: $1", GetTypeName<EnumType>(), str); |
358 | 8.75k | } |
359 | | |
360 | | template<typename EnumType> |
361 | 8.75k | Result<EnumType> ParseEnumInsensitive(const std::string& str) { |
362 | 8.75k | return ParseEnumInsensitive<EnumType>(str.c_str()); |
363 | 8.75k | } |
364 | | |
365 | | |
366 | | } // namespace yb |
367 | | |
368 | | #endif // YB_UTIL_ENUMS_H_ |