Home
last modified time | relevance | path

Searched refs:nullopt (Results 1 – 25 of 106) sorted by relevance

12345

/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.nullops/
H A Dnot_equal.pass.cpp23 using std::nullopt; in main()
32 static_assert ( !(nullopt != o1), "" ); in main()
33 static_assert ( (nullopt != o2), "" ); in main()
34 static_assert ( !(o1 != nullopt), "" ); in main()
35 static_assert ( (o2 != nullopt), "" ); in main()
37 static_assert (noexcept(nullopt != o1), ""); in main()
38 static_assert (noexcept(o1 != nullopt), ""); in main()
H A Dequal.pass.cpp23 using std::nullopt; in main()
32 static_assert ( (nullopt == o1), "" ); in main()
33 static_assert ( !(nullopt == o2), "" ); in main()
34 static_assert ( (o1 == nullopt), "" ); in main()
35 static_assert ( !(o2 == nullopt), "" ); in main()
37 static_assert (noexcept(nullopt == o1), ""); in main()
38 static_assert (noexcept(o1 == nullopt), ""); in main()
H A Dless_than.pass.cpp23 using std::nullopt; in main()
32 static_assert ( !(nullopt < o1), "" ); in main()
33 static_assert ( (nullopt < o2), "" ); in main()
34 static_assert ( !(o1 < nullopt), "" ); in main()
35 static_assert ( !(o2 < nullopt), "" ); in main()
37 static_assert (noexcept(nullopt < o1), ""); in main()
38 static_assert (noexcept(o1 < nullopt), ""); in main()
H A Dgreater_equal.pass.cpp23 using std::nullopt; in main()
32 static_assert ( (nullopt >= o1), "" ); in main()
33 static_assert ( !(nullopt >= o2), "" ); in main()
34 static_assert ( (o1 >= nullopt), "" ); in main()
35 static_assert ( (o2 >= nullopt), "" ); in main()
37 static_assert (noexcept(nullopt >= o1), ""); in main()
38 static_assert (noexcept(o1 >= nullopt), ""); in main()
H A Dgreater.pass.cpp23 using std::nullopt; in main()
32 static_assert ( !(nullopt > o1), "" ); in main()
33 static_assert ( !(nullopt > o2), "" ); in main()
34 static_assert ( !(o1 > nullopt), "" ); in main()
35 static_assert ( (o2 > nullopt), "" ); in main()
37 static_assert (noexcept(nullopt > o1), ""); in main()
38 static_assert (noexcept(o1 > nullopt), ""); in main()
H A Dless_equal.pass.cpp24 using std::nullopt; in main()
33 static_assert ( (nullopt <= o1), "" ); in main()
34 static_assert ( (nullopt <= o2), "" ); in main()
35 static_assert ( (o1 <= nullopt), "" ); in main()
36 static_assert ( !(o2 <= nullopt), "" ); in main()
38 static_assert (noexcept(nullopt <= o1), ""); in main()
39 static_assert (noexcept(o1 <= nullopt), ""); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.monadic/
H A Dand_then.pass.cpp83 constexpr std::optional<int> operator()(int&) { return std::nullopt; } in operator ()()
99 constexpr std::optional<int> operator()(int&&) { return std::nullopt; } in operator ()()
111 constexpr std::optional<int> operator()(int) & { return std::nullopt; } in operator ()()
155 assert(i.and_then(NOLVal{}) == std::nullopt); in test_val_types()
165 assert(i.and_then(nl) == std::nullopt); in test_val_types()
176 assert(i.and_then(NOCLVal{}) == std::nullopt); in test_val_types()
186 assert(i.and_then(nl) == std::nullopt); in test_val_types()
197 assert(std::move(i).and_then(NORVal{}) == std::nullopt); in test_val_types()
205 assert(i.and_then(NORVRefQual{}) == std::nullopt); in test_val_types()
216 assert(std::move(i).and_then(NOCRVal{}) == std::nullopt); in test_val_types()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
H A Dnullopt_t.pass.cpp23 using std::nullopt;
42 static_assert(noexcept(opt = nullopt) == true, ""); in test()
43 opt = nullopt; in test()
48 opt = nullopt; in test()
53 opt = nullopt; in test()
60 opt = nullopt; in test()
78 static_assert(noexcept(opt = nullopt) == true, ""); in main()
80 opt = nullopt; in main()
93 opt = nullopt; in main()
/llvm-project-15.0.7/flang/lib/Parser/
H A Dtoken-parsers.h50 return std::nullopt; in Parse()
244 return std::nullopt; in Parse()
264 return std::nullopt; in Parse()
294 return std::nullopt; in Parse()
299 return std::nullopt; in Parse()
366 return std::nullopt; in Parse()
382 return std::nullopt; in Parse()
423 return std::nullopt; in SignedInteger()
551 return std::nullopt; in Parse()
566 return std::nullopt; in Parse()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
H A Dnullopt_t.pass.cpp24 using std::nullopt;
34 constexpr Opt opt(nullopt); in test_constexpr()
52 Opt opt(nullopt); in test()
56 const Opt opt(nullopt); in test()
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dfold.h47 return std::nullopt; in Fold()
77 return std::nullopt;
91 return std::nullopt; in ToInt64()
103 return std::nullopt; in ToInt64()
111 return std::nullopt; in ToInt64()
H A Dshape.h178 return std::nullopt; in GetArrayConstructorValueExtent()
192 return std::nullopt; in GetArrayConstructorValueExtent()
211 return std::nullopt; in GetArrayConstructorExtent()
226 return std::nullopt; in GetShape()
249 return std::nullopt; in GetConstantShape()
259 return std::nullopt; in GetConstantExtents()
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.nullopt/
H A Dnullopt_t.pass.cpp25 using std::nullopt;
29 nullopt_t foo{nullopt}; in test()
39 static_assert(std::is_same_v<const nullopt_t, decltype(nullopt)>); in main()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold-designator.cpp44 return std::nullopt; in DEFINE_DEFAULT_CONSTRUCTORS_AND_ASSIGNMENTS()
65 return std::nullopt; in FoldDesignator()
133 return std::nullopt; in FoldDesignator()
153 return std::nullopt; in FoldDesignator()
166 return std::nullopt; in FoldDesignator()
184 return std::nullopt; in FoldDesignator()
198 return std::nullopt; in FoldDesignator()
213 return std::nullopt; in OffsetToArrayRef()
224 return std::nullopt; in OffsetToArrayRef()
302 return std::nullopt; in OffsetToDesignator()
[all …]
H A Dtype.cpp127 return std::nullopt; in GetCharLength()
169 return std::nullopt; in MeasureSizeInBytes()
352 return std::nullopt; in SameTypeAs()
359 return std::nullopt; // unknown in ExtendsTypeOf()
394 return std::nullopt; in From()
506 return std::nullopt; in ComparisonType()
516 return std::nullopt; in ComparisonType()
526 return std::nullopt; in ComparisonType()
534 return std::nullopt; in ComparisonType()
541 return std::nullopt; in ComparisonType()
[all …]
H A Dshape.cpp75 return std::nullopt; in AsShapeResult()
93 return std::nullopt; in AsExtentArrayExpr()
107 return std::nullopt; in AsConstantShape()
132 return std::nullopt; in AsConstantExtents()
148 return std::nullopt; in AsShape()
164 return std::nullopt; in Fold()
428 return std::nullopt; in GetNonNegativeExtent()
473 return std::nullopt; in GetExtent()
557 return std::nullopt; in GetRawUpperBound()
580 return std::nullopt; in GetExplicitUBOUND()
[all …]
H A Dvariable.cpp45 return std::nullopt; in lower()
57 return std::nullopt; in upper()
92 return std::nullopt; in stat()
100 return std::nullopt; in team()
169 return std::nullopt; in Fold()
175 return std::nullopt; in Fold()
183 return std::nullopt; in Fold()
283 return std::nullopt; in SymbolLEN()
328 return std::nullopt; in LEN()
342 return std::nullopt; in LEN()
[all …]
H A Dcheck-expression.cpp495 return std::nullopt; in NonPointerInitializationExpr()
519 return std::nullopt; in operator ()()
534 return std::nullopt; in operator ()()
543 return std::nullopt; in operator ()()
547 return std::nullopt; in operator ()()
592 return std::nullopt; in operator ()()
648 return std::nullopt; in operator ()()
652 return std::nullopt; in operator ()()
775 return std::nullopt; in CheckSubscripts()
779 return std::nullopt; in CheckSubscripts()
[all …]
H A Dfold-reduction.h36 int arrayIndex, std::optional<int> dimIndex = std::nullopt,
37 std::optional<int> maskIndex = std::nullopt) {
39 return std::nullopt;
43 return std::nullopt;
46 return std::nullopt;
78 return std::nullopt;
H A Dstatic-data.cpp65 return std::nullopt; in AsString()
80 return std::nullopt; in AsU16String()
97 return std::nullopt; in AsU32String()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dexpression.cpp93 return std::nullopt; in AnalyzeTypeSpec()
368 return std::nullopt; in FixMisparsedSubstringDataRef()
399 return std::nullopt; in FixMisparsedSubstring()
428 return std::nullopt; in Analyze()
440 return std::nullopt; in AsMaybeExpr()
535 return std::nullopt; in IntLiteralConstant()
655 return std::nullopt; in Analyze()
813 return std::nullopt; in Analyze()
825 return std::nullopt; in Analyze()
872 return std::nullopt; in GetSubstringBound()
[all …]
H A Dunparse-with-symbols.cpp36 currStmt_ = std::nullopt; in Post()
42 void Post(const parser::AccClause &) { currStmt_ = std::nullopt; } in Post()
47 void Post(const parser::OmpClause &) { currStmt_ = std::nullopt; } in Post()
52 void Post(const parser::OpenMPThreadprivate &) { currStmt_ = std::nullopt; } in Post()
/llvm-project-15.0.7/libcxx/include/
H A D__node_handle108 __alloc_ = _VSTD::nullopt;
142 __other.__alloc_ = _VSTD::nullopt;
149 __alloc_ == _VSTD::nullopt ||
159 __alloc_ == _VSTD::nullopt)
163 __other.__alloc_ = _VSTD::nullopt;
185 __alloc_ == _VSTD::nullopt || __other.__alloc_ == _VSTD::nullopt)
/llvm-project-15.0.7/libcxx/include/__ranges/
H A Dnon_propagating_cache.h54 optional<__wrapper> __value_ = nullopt;
61 : __value_(nullopt) in __non_propagating_cache()
66 : __value_(nullopt) in __non_propagating_cache()
/llvm-project-15.0.7/flang/include/flang/Parser/
H A Dcharacters.h107 return std::nullopt; // '\a'; PGF90 doesn't know \a in BackslashEscapeValue()
125 return std::nullopt; in BackslashEscapeValue()
132 return std::nullopt; // 'a'; PGF90 doesn't know \a in BackslashEscapeChar()
150 return std::nullopt; in BackslashEscapeChar()

12345