| /llvm-project/libcxx/test/support/type_classification/ |
| H A D | swappable.h | 22 constexpr lvalue_adl_swappable(int value) noexcept : value_(value) {} in lvalue_adl_swappable() 25 : value_(std::move(other.value_)), in lvalue_adl_swappable() 29 : value_(other.value_), in lvalue_adl_swappable() 34 value_ = other.value_; 40 std::ranges::swap(x.value_, y.value_); in swap() 44 return value_ == other.value_ && this_ == this && other.this_ == &other; 48 int value_{}; 56 constexpr lvalue_rvalue_adl_swappable(int value) noexcept : value_(value) {} in lvalue_rvalue_adl_swappable() 60 : value_(std::move(other.value_)), in lvalue_rvalue_adl_swappable() 65 : value_(other.value_), in lvalue_rvalue_adl_swappable() [all …]
|
| /llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/ |
| H A D | types.h | 17 int value_; member 18 constexpr explicit SomeInt(int value = 0) : value_(value) {} in value_() function 23 lhs.value_ += rhs.value_; return lhs; 26 lhs.value_ -= rhs.value_; return lhs; 30 lhs.value_ += rhs; return lhs; 33 lhs.value_ -= rhs; return lhs; 37 return SomeInt{lhs.value_ + rhs.value_}; 40 return lhs.value_ - rhs.value_; 44 return SomeInt{lhs.value_ + rhs}; 47 return lhs.value_ - rhs; [all …]
|
| H A D | ctor.value.pass.cpp | 23 SomeInt value_; member 24 constexpr SomeIntComparable() : value_(SomeInt(10)) {} in SomeIntComparable() 27 return lhs.value_ == rhs.value_; in operator ==() 30 return lhs.value_ == rhs; in operator ==() 33 return lhs == rhs.value_; in operator ==() 37 return lhs.value_ - rhs.value_; in operator -() 40 constexpr SomeIntComparable& operator++() { ++value_; return *this; } in operator ++() 41 constexpr SomeIntComparable operator++(int) { auto tmp = *this; ++value_; return tmp; } in operator ++() 42 constexpr SomeIntComparable operator--() { --value_; return *this; } in operator --() 48 assert((*io.begin()).value_ == 42); in test()
|
| /llvm-project/libcxx/test/support/ |
| H A D | boolean_testable.h | 20 constexpr operator bool() const { return value_; } 23 return lhs.value_ == rhs.value_; 27 return lhs.value_ != rhs.value_; 31 value_ = !value_; 36 constexpr BooleanTestable(bool value) : value_{value} {} in BooleanTestable() 41 bool value_; 52 constexpr StrictComparable(T value) : value_{value} {} in StrictComparable() 55 return a.value_ == b.value_ ? yes : no; 59 return a.value_ != b.value_ ? yes : no; 63 return a.value_ < b.value_ ? yes : no; [all …]
|
| H A D | test_transparent_unordered.h | 49 explicit SearchedType(T value, int *counter) : value_(value), conversions_(counter) { } in SearchedType() 55 return StoredType<T>{value_}; 59 return value_; in get_value() 63 T value_; 70 StoredType(T value) : value_(value) { } in StoredType() 73 return lhs.value_ == rhs.value_; 82 return lhs.value_ == rhs.get_value(); 86 return value_; in get_value() 90 T value_;
|
| H A D | hexfloat.h | 24 T value_; 44 value_ = std::ldexp(m1 + s * std::ldexp(T(m0), exp2), exp); in hexfloat() 47 operator T() const {return value_;} 23 T value_; global() variable
|
| /llvm-project/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/ |
| H A D | star.pass.cpp | 27 int value_; member 28 constexpr explicit NotNoexceptCopy(int value = 0) : value_(value) {} in NotNoexceptCopy() 29 constexpr NotNoexceptCopy(const NotNoexceptCopy& other) noexcept(false) : value_(other.value_) {} in NotNoexceptCopy() 34 lhs.value_ += rhs.value_; return lhs; in operator +=() 37 lhs.value_ -= rhs.value_; return lhs; in operator -=() 41 return NotNoexceptCopy{lhs.value_ + rhs.value_}; in operator +() 44 return lhs.value_ - rhs.value_; in operator -() 47 constexpr NotNoexceptCopy& operator++() { ++value_; return *this; } in operator ++() 48 constexpr void operator++(int) { ++value_; } in operator ++()
|
| /llvm-project/libcxx/test/std/utilities/utility/mem.res/mem.poly.allocator.class/mem.poly.allocator.mem/ |
| H A D | construct_piecewise_pair_evil.pass.cpp | 46 WidgetV0(int v) : value_(v) {} in WidgetV0() 48 bool holds(int v, const std::pmr::polymorphic_allocator<char>&) const { return value_ == v; } in holds() 51 int value_; member 57 WidgetV1(int v) : value_(v), alloc_() {} in WidgetV1() 58 WidgetV1(std::allocator_arg_t, EvilAlloc<char> a, int v) : value_(v), alloc_(a) {} in WidgetV1() 60 …bool holds(int v, const std::pmr::polymorphic_allocator<char>& a) const { return value_ == v && al… in holds() 63 int value_; member 70 WidgetV2(int v) : value_(v), alloc_() {} in WidgetV2() 71 WidgetV2(int v, EvilAlloc<char> a) : value_(v), alloc_(a) {} in WidgetV2() 73 …bool holds(int v, std::pmr::polymorphic_allocator<char> a) const { return value_ == v && alloc_.in… in holds() [all …]
|
| /llvm-project/flang/include/flang/Common/ |
| H A D | fast-int-set.h | 37 const int *value() const { return &value_[0]; } in value() 48 value_[j] = index_[j] = 0; in InitializeState() 57 return j >= 0 && j < size_ && value_[j] == n; in Contains() 66 value_[index_[n] = size_++] = n; in Add() 77 int last{value_[--size_]}; in Remove() 78 value_[index_[last] = index_[n]] = last; in Remove() 90 return value_[--size_]; in PopValue() 97 return j >= 0 && j < size_ && value_[j] == n; in UncheckedContains() 100 int value_[N]; variable
|
| /llvm-project/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/ |
| H A D | PR23256_constrain_UTypes_ctor.pass.cpp | 33 int value_; member 35 UnconstrainedCtor() : value_(0) {} in UnconstrainedCtor() 42 constexpr UnconstrainedCtor(T value) noexcept(noexcept(value_ = value)) in UnconstrainedCtor() 43 : value_(static_cast<int>(value)) in UnconstrainedCtor() 50 int value_; member 52 ExplicitUnconstrainedCtor() : value_(0) {} in ExplicitUnconstrainedCtor() 56 noexcept(noexcept(value_ = value)) in ExplicitUnconstrainedCtor() 57 : value_(static_cast<int>(value)) in ExplicitUnconstrainedCtor()
|
| /llvm-project/clang/test/SemaCXX/ |
| H A D | decltype.cpp | 106 float value_; 108 float value_; 114 float value_; 124 using okay = decltype(Foo::value_); 126 using okay2 = decltype(Foo::nested::value_); 127 using okay3 = decltype(TemplateFoo<T>::value_); 130 using okay = decltype(Foo::value_); 132 using okay2 = decltype(Foo::nested::value_); 133 using okay3 = decltype(TemplateFoo<T>::value_);
|
| H A D | warn-unsequenced-coro.cpp | 54 value_ = std::move(value); in yield_value() 58 T value_; member 78 const_reference &operator*() const { return h_.promise().value_; } in operator *()
|
| /llvm-project/libcxx/test/std/iterators/iterator.requirements/iterator.cust/iterator.cust.swap/ |
| H A D | iter_swap.pass.cpp | 25 int &value_; member 26 constexpr explicit HasIterSwap(int &value) : value_(value) { assert(value == 0); } in HasIterSwap() 29 a.value_ = 1; in iter_swap() 30 b.value_ = 1; in iter_swap() 33 a.value_ = 2; in iter_swap() 64 int &value_; member 65 constexpr explicit HasRangesSwap(int &value) : value_(value) { assert(value == 0); } in HasRangesSwap() 68 a.value_ = 1; in swap() 69 b.value_ = 1; in swap() 72 a.value_ = 2; in swap() [all …]
|
| /llvm-project/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/ |
| H A D | types.h | 27 : count_(count), value_(*count) in DestroyInReverseOrder() 31 : count_(other.count_), value_(*other.count_) in DestroyInReverseOrder() 34 constexpr int value() const { return value_; } in value() 39 assert(*count_ == value_); in ~DestroyInReverseOrder() 44 int value_; member
|
| /llvm-project/compiler-rt/test/asan/TestCases/Darwin/ |
| H A D | asan-symbolize-templated-cxx.cpp | 15 int value_; member in IntWrapper 19 IntWrapper(int value, std::function<CallBackTy> callback) : value_(value), callback_(callback) {} in IntWrapper() 21 value_ = new_value; in operator =() 22 callback_(value_); in operator =()
|
| /llvm-project/libcxx/test/std/ranges/range.adaptors/range.chunk.by/ |
| H A D | types.h | 48 constexpr IntWrapper(int v) : value_(v) {} in IntWrapper() 50 int value_; member 51 constexpr bool lessEqual(IntWrapper other) const { return value_ <= other.value_; } in lessEqual()
|
| /llvm-project/clang/test/CXX/temp/temp.decls/temp.friend/ |
| H A D | p1.cpp | 5 T value_; member 8 Num(T value) : value_(value) {} in Num() 9 T get() const { return value_; } in get() 24 return a.value_ + b.value_; in operator +() 28 value_ += b.value_; in operator +=()
|
| /llvm-project/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/ |
| H A D | pro-type-member-init.cpp | 581 explicit A(int value) : value_(value) {} in A() 582 int value_; member 587 explicit B(int value) : value_(value) {} in B() 588 int value_; member 594 explicit C(T value) : value_(value) {} in C() 595 T value_; member
|
| /llvm-project/clang/test/SemaObjCXX/ |
| H A D | warn-thread-safety-analysis.mm | 8 int value_; field 20 value_ += 1; 25 value_ -= 1;
|
| /llvm-project/third-party/unittest/googletest/include/gtest/internal/ |
| H A D | gtest-param-util.h | 232 : base_(base), value_(value), index_(index), step_(step) {} in Iterator() 239 value_ = static_cast<T>(value_ + step_); in Advance() 245 const T* Current() const override { return &value_; } in Current() 261 value_(other.value_), in Iterator() 269 T value_; variable 326 value_.reset(); in Advance() 339 if (value_.get() == nullptr) value_.reset(new T(*iterator_)); in Current() 340 return value_.get(); in Current() 367 mutable std::unique_ptr<const T> value_; variable 970 if (it_ != end_) value_ = std::make_shared<To>(static_cast<To>(*it_)); in Iterator() [all …]
|
| H A D | gtest-port.h | 1579 ValueHolder() : value_() {} 1580 explicit ValueHolder(const T& value) : value_(value) {} 1582 T* pointer() { return &value_; } 1585 T value_; 1624 explicit InstanceValueHolderFactory(const T& value) : value_(value) {} 1626 return new ValueHolder(value_); 1630 const T value_; // The value for each thread. 1782 ValueHolder() : value_() {} 1783 explicit ValueHolder(const T& value) : value_(value) {} 1785 T* pointer() { return &value_; } [all …]
|
| /llvm-project/flang/lib/Decimal/ |
| H A D | decimal-to-binary.cpp | 206 value_ = n; in SetTo() 212 value_ = n; in SetTo() 216 value_ = n >> shift; in SetTo() 225 RT_API_ATTRS void ShiftIn(int bit = 0) { value_ = value_ + value_ + bit; } in ShiftIn() 226 RT_API_ATTRS bool IsFull() const { return value_ >= topBit; } in IsFull() 240 IntType value_{0}; member in Fortran::decimal::IntermediateFloat 260 IntType fraction{value_}; in ToBinary()
|
| /llvm-project/libcxx/test/std/utilities/function.objects/refwrap/refwrap.comparissons/ |
| H A D | helper_types.h | 15 constexpr EqualityComparable(int value) : value_{value} {}; in EqualityComparable() 19 int value_; member
|
| /llvm-project/clang/test/CodeGenCXX/ |
| H A D | builtin-constant-p.cpp | 16 : value_(static_cast<T>(value)) {} in numeric() 19 const T value_; member in numeric
|
| /llvm-project/libcxx/test/std/language.support/cmp/cmp.alg/ |
| H A D | compare_partial_order_fallback.pass.cpp | 250 double value_; member 251 constexpr explicit A(Stats *stats, double value) : stats_(stats), value_(value) {} in A() 252 friend constexpr bool operator==(A a, A b) { a.stats_->eq += 1; return a.value_ == b.value_; } in operator ==() 253 friend constexpr bool operator<(A a, A b) { a.stats_->lt += 1; return a.value_ < b.value_; } in operator <()
|