reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/DebugInfo/DWARF/DWARFFormValue.h
  188   return toString(V).getValueOr(Default);
  210   return toUnsigned(V).getValueOr(Default);
  232   return toReference(V).getValueOr(Default);
  253   return toSigned(V).getValueOr(Default);
  281   return toAddress(V).getValueOr(Default);
  303   return toSectionOffset(V).getValueOr(Default);
lib/Analysis/InstructionSimplify.cpp
 2537     if (isImpliedCondition(RHS, LHS, Q.DL).getValueOr(false))
 2548     if (isImpliedCondition(LHS, RHS, Q.DL).getValueOr(false))
 2552     if (isImpliedCondition(LHS, RHS, Q.DL).getValueOr(false))
lib/Analysis/OptimizationRemarkEmitter.cpp
   78   if (OptDiag.getHotness().getValueOr(0) <
lib/CodeGen/MachineOptimizationRemarkEmitter.cpp
   56   if (OptDiag.getHotness().getValueOr(0) <
lib/DebugInfo/DWARF/DWARFContext.cpp
 1018             LowerBound = LowerBoundAttr->getAsSignedConstant().getValueOr(0);
lib/IR/AsmWriter.cpp
 1914   Printer.printString("source", N->getSource().getValueOr(StringRef()),
lib/Target/AArch64/AArch64InstrInfo.cpp
 5298   if (!AFI || AFI->hasRedZone().getValueOr(true))
lib/Transforms/Utils/LoopUtils.cpp
  285   return getOptionalBoolLoopAttribute(TheLoop, Name).getValueOr(false);
  291       findStringMetadataForLoop(TheLoop, Name).getValueOr(nullptr);
tools/clang/lib/Basic/Cuda.cpp
  365       Version.getMajor() * 10 + Version.getMinor().getValueOr(0);
tools/clang/lib/Driver/ToolChains/Clang.cpp
 4804     unsigned Minor = GNUCVer.getMinor().getValueOr(0);
 4805     unsigned Patch = GNUCVer.getSubminor().getValueOr(0);
tools/clang/lib/Driver/ToolChains/MSVC.cpp
 1343   MSVT = VersionTuple(MSVT.getMajor(), MSVT.getMinor().getValueOr(0),
 1344                       MSVT.getSubminor().getValueOr(0));
tools/clang/lib/Frontend/CompilerInvocation.cpp
 2597     unsigned Minor = GNUCVer.getMinor().getValueOr(0);
 2598     unsigned Patch = GNUCVer.getSubminor().getValueOr(0);
 2685                                   VT.getMinor().getValueOr(0) * 100000 +
 2686                                   VT.getSubminor().getValueOr(0);
tools/clang/lib/Frontend/InitPreprocessor.cpp
  660             "1" + Twine(std::min(8U, version.getMinor().getValueOr(0))));
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 3290           S.getNumArgumentsInExpansion(PD->getType(), Args).getValueOr(1);
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
  281   if (const auto* ArraySize = New->getArraySize().getValueOr(nullptr)) {
tools/clang/tools/extra/clangd/CodeComplete.cpp
  191             headerToInsertIfAllowed(Opts).getValueOr(""));
  206                                 headerToInsertIfAllowed(Opts).getValueOr(""));
  557       CCContext.getCXXScopeSpecifier().getValueOr(nullptr);
tools/clang/tools/extra/clangd/JSONTransport.cpp
   35   std::string Msg = O.getString("message").getValueOr("Unspecified error");
tools/clang/tools/extra/clangd/Quality.cpp
  432         wordMatching(S.Name, S.ContextWords).getValueOr("<none>"));
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  177                    .getValueOr(HighlightingKind::DependentName));
tools/clang/tools/libclang/CIndex.cpp
 2499   AddStmt(E->getArraySize().getValueOr(nullptr));
tools/dsymutil/DwarfLinker.cpp
  708             .getValueOr(UINT64_MAX) <= LowPc)
 1646             .getValueOr(0);
 1651             .getValueOr(0);
tools/lldb/source/API/SBModule.cpp
  641     versions[1] = version.getMinor().getValueOr(UINT32_MAX);
  643     versions[2] = version.getSubminor().getValueOr(UINT32_MAX);
tools/lldb/source/API/SBPlatform.cpp
  440   return version.getMinor().getValueOr(UINT32_MAX);
  449   return version.getSubminor().getValueOr(UINT32_MAX);
tools/lldb/source/Core/ValueObjectMemory.cpp
  139     return m_type_sp->GetByteSize().getValueOr(0);
  140   return m_compiler_type.GetByteSize(nullptr).getValueOr(0);
tools/lldb/source/Core/ValueObjectVariable.cpp
  114   return type.GetByteSize(exe_ctx.GetBestExecutionContextScope()).getValueOr(0);
tools/lldb/source/Expression/Materializer.cpp
  527                 m_variable_sp->GetType()->GetByteSize().getValueOr(0),
tools/lldb/source/Plugins/ABI/SysV-arc/ABISysV_arc.cpp
  459     const size_t byte_size = compiler_type.GetByteSize(nullptr).getValueOr(0);
  483       const size_t byte_size = compiler_type.GetByteSize(nullptr).getValueOr(0);
tools/lldb/source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp
  568         m_byte_size(m_type.GetByteSize(nullptr).getValueOr(0)),
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  339            m_result_name, m_result_type.GetByteSize(nullptr).getValueOr(0));
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp
  531                 ivar_type.GetByteSize(nullptr).getValueOr(0));
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1473                                version.getMinor().getValueOr(0));
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
   48       .getValueOr(llvm::ArrayRef<uint8_t>());
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
  655                                 .getValueOr(FileSpec::Style::native);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  733                               type_sp->GetByteSize().getValueOr(0), die);
 1171         attrs.byte_stride = element_type->GetByteSize().getValueOr(0);
 2090         layout_info.bit_size = type->GetByteSize().getValueOr(0) * 8;
 2174                               type->GetByteSize().getValueOr(0), die);
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp
  692         FileSpec::GuessPathStyle(comp_dir).getValueOr(FileSpec::Style::native);
  700         "", FileSpec::GuessPathStyle(name).getValueOr(FileSpec::Style::native));
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
 1230   return user_id_t(GetDwoNum().getValueOr(0x7fffffff)) << 32 |
 1698                           var_sp->GetType()->GetByteSize().getValueOr(0);
 3493                                type_sp->GetType()->GetByteSize().getValueOr(0),
tools/lldb/source/Plugins/SymbolVendor/ELF/SymbolVendorELF.cpp
   83     fspec = obj_file->GetDebugLink().getValueOr(FileSpec());
tools/lldb/source/Symbol/Type.cpp
  322         data_byte_offset, GetByteSize().getValueOr(0),
  428   const uint64_t byte_size = GetByteSize().getValueOr(0);
tools/lldb/source/Utility/ProcessInfo.cpp
  146              resolver.GetUserName(GetUserID()).getValueOr(""));
  150              resolver.GetGroupName(GetGroupID()).getValueOr(""));
  154              resolver.GetUserName(GetEffectiveUserID()).getValueOr(""));
  158              resolver.GetGroupName(GetEffectiveGroupID()).getValueOr(""));
unittests/ADT/OptionalTest.cpp
  391   EXPECT_EQ(42, std::move(A).getValueOr(MoveOnly(42)).val);
  398   EXPECT_EQ(5, std::move(A).getValueOr(MoveOnly(42)).val);
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
 1538   EXPECT_EQ(SpecLinkageName, toString(LinkageNameOpt).getValueOr(nullptr));