Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 25 of 214) sorted by relevance

123456789

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DCustomizableOptional.h82 constexpr explicit operator bool() const { return has_value(); }
83 constexpr bool has_value() const { return Storage.has_value(); } in has_value() function
90 return has_value() ? operator*() : std::forward<U>(alt); in value_or()
98 return has_value() ? std::move(operator*()) : std::forward<U>(alt); in value_or()
115 return X.has_value() == Y.has_value();
129 return X.has_value() < Y.has_value();
177 return X.has_value();
H A DDirectoryEntry.h133 bool has_value() const { return MaybeRef.hasOptionalValue(); }
136 assert(has_value());
140 assert(has_value());
144 assert(has_value());
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DELFYAML.h350 return {{"Entries", Entries.has_value()}}; in getEntries()
364 return {{"Entries", Entries.has_value()}}; in getEntries()
382 return {{"Entries", Entries.has_value()}}; in getEntries()
413 return {{"Notes", Notes.has_value()}}; in getEntries()
424 return {{"Bucket", Bucket.has_value()}, {"Chain", Chain.has_value()}}; in getEntries()
466 return {{"Header", Header.has_value()}, in getEntries()
467 {"BloomFilter", BloomFilter.has_value()}, in getEntries()
468 {"HashBuckets", HashBuckets.has_value()}, in getEntries()
469 {"HashValues", HashValues.has_value()}}; in getEntries()
495 return {{"Dependencies", VerneedV.has_value()}}; in getEntries()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DHardwareLoops.h54 return ForcePhi.has_value() && ForcePhi.value(); in getForcePhi()
57 return ForceNested.has_value() && ForceNested.value(); in getForceNested()
60 return ForceGuard.has_value() && ForceGuard.value(); in getForceGuard()
/freebsd/contrib/llvm-project/libcxx/include/__expected/
H A Dexpected.h824 _LIBCPP_HIDE_FROM_ABI constexpr bool has_value() const noexcept { return this->__has_val(); }
902 if (has_value())
911 if (has_value())
924 if (has_value()) {
937 if (has_value()) {
951 if (has_value()) {
965 if (has_value()) {
978 if (has_value()) {
991 if (has_value()) {
1005 if (has_value()) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/MCDisassembler/
H A DMCDisassembler.cpp91 if (StorageMappingClass.has_value() != in operator <()
92 SymInfo.StorageMappingClass.has_value()) in operator <()
93 return SymInfo.StorageMappingClass.has_value(); in operator <()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSymbolWasm.h90 bool hasImportModule() const { return ImportModule.has_value(); } in hasImportModule()
102 bool hasImportName() const { return ImportName.has_value(); } in hasImportName()
110 bool hasExportName() const { return ExportName.has_value(); } in hasExportName()
140 bool hasTableType() const { return TableType.has_value(); } in hasTableType()
H A DMCSectionXCOFF.h125 bool isCsect() const { return CsectProp.has_value(); } in isCsect()
126 bool isDwarfSect() const { return DwarfSubtypeFlags.has_value(); } in isDwarfSect()
H A DMCDwarf.h308 trackMD5Usage(Checksum.has_value()); in setRootFile()
309 HasAnySource |= Source.has_value(); in setRootFile()
388 Header.trackMD5Usage(Checksum.has_value()); in setRootFile()
389 Header.HasAnySource |= Source.has_value(); in setRootFile()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/GSYM/
H A DFunctionInfo.h
/freebsd/contrib/llvm-project/libcxx/include/
H A Doptional146 constexpr bool has_value() const noexcept;
353 _LIBCPP_HIDE_FROM_ABI constexpr bool has_value() const noexcept { return this->__engaged_; }
362 _LIBCPP_ASSERT_INTERNAL(!has_value(), "__construct called for engaged __optional_storage");
369 if (__opt.has_value())
375 if (this->__engaged_ == __opt.has_value()) {
424 _LIBCPP_HIDE_FROM_ABI constexpr bool has_value() const noexcept { return __value_ != nullptr; }
432 _LIBCPP_ASSERT_INTERNAL(!has_value(), "__construct called for engaged __optional_storage");
441 if (__opt.has_value())
447 if (has_value() == __opt.has_value()) {
448 if (has_value())
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DStatistics.h145 if (m_include_targets.has_value()) in GetIncludeTargets()
153 if (m_include_modules.has_value()) in GetIncludeModules()
162 if (m_include_transcript.has_value()) in GetIncludeTranscript()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DPGOCtxProfReader.cpp90 return Guid.has_value() && Counters.has_value() && in readContext()
91 (!ExpectIndex || CallsiteIndex.has_value()); in readContext()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DMSVC.cpp556 if (!(WinSdkDir.has_value() || WinSysRoot.has_value()) && in getWindowsSDKLibraryPath()
557 WinSdkVersion.has_value()) in getWindowsSDKLibraryPath()
580 if (!(WinSdkDir.has_value() || WinSysRoot.has_value()) && in getUniversalCRTLibraryPath()
581 WinSdkVersion.has_value()) in getUniversalCRTLibraryPath()
713 if (!(WinSdkDir.has_value() || WinSysRoot.has_value()) && in AddClangSystemIncludeArgs()
714 WinSdkVersion.has_value()) in AddClangSystemIncludeArgs()
729 if (!(WinSdkDir.has_value() || WinSysRoot.has_value()) && in AddClangSystemIncludeArgs()
730 WinSdkVersion.has_value()) in AddClangSystemIncludeArgs()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DLogicalResult.h93 operator LogicalResult() const { return success(has_value()); } in LogicalResult()
98 using std::optional<T>::has_value;
/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectProcess.cpp1638 if (!m_options.notify.empty() && !notify_action.has_value()) { in DoExecute()
1641 bool no_actions = (!stop_action.has_value() && !pass_action.has_value() && in DoExecute()
1642 !notify_action.has_value()); in DoExecute()
1680 if (stop_action.has_value()) in DoExecute()
1682 if (pass_action.has_value()) { in DoExecute()
1686 if (notify_action.has_value()) in DoExecute()
1708 if (!action.has_value()) in DoExecute()
1723 if ((notify_action.has_value() || stop_action.has_value() || in DoExecute()
1724 pass_action.has_value()) && in DoExecute()
1730 if (notify_action.has_value()) in DoExecute()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/APINotes/
H A DTypes.h88 SwiftPrivateSpecified = Private.has_value(); in setSwiftPrivate()
253 SwiftImportAsNonGenericSpecified = Value.has_value(); in setSwiftImportAsNonGeneric()
262 SwiftObjCMembersSpecified = Value.has_value(); in setSwiftObjCMembers()
377 SwiftImportAsAccessorsSpecified = Value.has_value(); in setSwiftImportAsAccessors()
443 NoEscapeSpecified = Value.has_value(); in setNoEscape()
700 HasFlagEnum = Value.has_value(); in setFlagEnum()
709 SwiftCopyableSpecified = Value.has_value(); in setSwiftCopyable()
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DSelectHelper.cpp141 if (max_read_fd.has_value()) { in Select()
145 if (max_write_fd.has_value()) { in Select()
149 if (max_error_fd.has_value()) { in Select()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVectorBuilder.cpp81 NumInstParams + MaskPosOpt.has_value() + VLenPosOpt.has_value(); in createVectorInstructionImpl()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSarif.cpp239 if (Location.Index.has_value()) in createPhysicalLocation()
301 if (A.Location.Index.has_value()) { in endRun()
306 if (A.Length.has_value()) in endRun()
312 if (A.Offset.has_value()) in endRun()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupInstTuning.cpp74 if (NewVal.has_value() && CurVal.has_value() && *NewVal != *CurVal) in CmpOptionals()
112 if (Res.has_value()) in processInstruction()
116 if (Res.has_value()) in processInstruction()
121 if (Res.has_value()) in processInstruction()
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DDXContainerEmitter.cpp177 if (!P.Flags.has_value()) in writeParts()
186 if (!P.Hash.has_value()) in writeParts()
198 if (!P.Info.has_value()) in writeParts()
252 if (P.Signature.has_value()) { in writeParts()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DObjCARCUtil.h38 .has_value(); in hasAttachedCallOpBundle()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DRichManglingContext.h89 assert(parser.has_value()); in get()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DThreadDecoder.cpp41 if (!m_decoded_thread.has_value()) { in Decode()

123456789