const std::optional<TimeDelta> cpu_usage = GetCumulativeCPUUsage(); if (!cpu_usage.has_value()) { return std::nullopt; } return GetPlatformIndependentCPUUsage(cpu_usage.value()); } #endif 15 changes: 9 additions & 6 deletions 15 base/process/process_metrics.h Original file line number...
return std::nullopt; } VELOX_USER_FAIL( return folly::makeUnexpected(Status::UserError(fmt::format( Contributor mbasmanova Jun 13, 2024 ditto velox/functions/lib/DateTimeFormatter.cpp Outdated return std::nullopt; } VELOX_USER_FAIL(status.message()); return folly::makeUnexpected...
RenderDiagnosticDetails(GetErrorStream(), std::nullopt,false, Expand Down 4 changes: 2 additions & 2 deletions4lldb/tools/lldb-test/lldb-test.cpp Original file line numberDiff line numberDiff line change Expand Up@@ -439,7 +439,7 @@ int opts::breakpoint::evaluateBreakpoints(Debugger &Dbg) ...
? std::nullopt : std::optional(diagnose_incomplete_return_type))) { result = SemIR::Function::ReturnSlot::Error; } else if (SemIR::GetInitRepr(context.sem_ir(), return_type_id) .has_return_slot()) { result = SemIR::Function::ReturnSlot::Present; } else { result = SemIR::Function...
(eStreamStringIndex))+RenderDiagnosticDetails(*stream_sp, std::nullopt, false, m_diagnostics);++// Clear them so GetErrorData() doesn't render them again.+m_diagnostics.clear();+return m_diag_stream.GetString();+}++llvm::StringRef CommandReturnObject::GetErrorData() {+// Diagnostics ...
ExprResult AddressExpr = buildMemberCall(S, E, Loc, "address", std::nullopt); if (AddressExpr.isInvalid()) return nullptr; @@ -358,6 +354,14 @@ static Expr *maybeTailCall(Sema &S, QualType RetType, Expr *E, return S.MaybeCreateExprWithCleanups(JustAddress); } +static bool isConve...
optional#include<string>//std::string#include<string_view>//std::string_view#include<clocale>//std::setlocale#include<exception>//std::exception#include<sstream>//std::ostringstream#include<functional>//std::function#include<utility>//std::move, std::forward#include<type_traits>//std::is_...
@@ -119,16 +119,17 @@ std::pair<Status, std::shared_ptr<msgpack::sbuffer>> GetExecuteResult( } Status TaskExecutor::ExecuteTask( const rpc::Address &caller_address, ray::TaskType task_type, const std::string task_name, const RayFunction &ray_function, const std::unordered_map<std:...
? std::nullopt : std::optional(diagnose_incomplete_return_type))) { result = SemIR::Function::ReturnSlot::Error; } else if (SemIR::GetInitRepr(context.sem_ir(), return_type_id) .has_return_slot()) { result = SemIR::Function::ReturnSlot::Present; } else { result = SemIR::Function...