| /llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.nullops/ |
| H A D | not_equal.pass.cpp | 23 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 D | equal.pass.cpp | 23 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 D | less_than.pass.cpp | 23 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 D | greater_equal.pass.cpp | 23 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 D | greater.pass.cpp | 23 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 D | less_equal.pass.cpp | 24 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 D | and_then.pass.cpp | 83 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 D | nullopt_t.pass.cpp | 23 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 D | token-parsers.h | 50 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 D | nullopt_t.pass.cpp | 24 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 D | fold.h | 47 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 D | shape.h | 178 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 D | nullopt_t.pass.cpp | 25 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 D | fold-designator.cpp | 44 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 D | type.cpp | 127 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 D | shape.cpp | 75 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 D | variable.cpp | 45 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 D | check-expression.cpp | 495 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 D | fold-reduction.h | 36 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 D | static-data.cpp | 65 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 D | expression.cpp | 93 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 D | unparse-with-symbols.cpp | 36 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_handle | 108 __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 D | non_propagating_cache.h | 54 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 D | characters.h | 107 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()
|