|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ADT/Optional.h 144 T value;
160 explicit OptionalStorage(in_place_t, Args &&... args)
161 : value(std::forward<Args>(args)...), hasVal(true) {}
172 T &getValue() LLVM_LVALUE_FUNCTION noexcept {
176 T const &getValue() const LLVM_LVALUE_FUNCTION noexcept {
181 T &&getValue() && noexcept {
216 optional_detail::OptionalStorage<T> Storage;
219 using value_type = T;
224 Optional(const T &y) : Storage(optional_detail::in_place_t{}, y) {}
227 Optional(T &&y) : Storage(optional_detail::in_place_t{}, std::move(y)) {}
230 Optional &operator=(T &&y) {
241 static inline Optional create(const T *y) {
245 Optional &operator=(const T &y) {
253 const T *getPointer() const { return &Storage.getValue(); }
254 T *getPointer() { return &Storage.getValue(); }
255 const T &getValue() const LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
256 T &getValue() LLVM_LVALUE_FUNCTION { return Storage.getValue(); }
260 const T *operator->() const { return getPointer(); }
261 T *operator->() { return getPointer(); }
262 const T &operator*() const LLVM_LVALUE_FUNCTION { return getValue(); }
263 T &operator*() LLVM_LVALUE_FUNCTION { return getValue(); }
266 constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
266 constexpr T getValueOr(U &&value) const LLVM_LVALUE_FUNCTION {
267 return hasValue() ? getValue() : std::forward<U>(value);
271 T &&getValue() && { return std::move(Storage.getValue()); }
272 T &&operator*() && { return std::move(Storage.getValue()); }
275 T getValueOr(U &&value) && {
275 T getValueOr(U &&value) && {
include/llvm/Object/Archive.h 53 Expected<sys::fs::perms> getAccessMode() const;
127 Expected<sys::fs::perms> getAccessMode() const {
include/llvm/Support/AlignOf.h 30 T t;
39 template <typename T> union SizerImpl<T> { char arr[sizeof(T)]; };
50 llvm::detail::SizerImpl<T, Ts...>)];
include/llvm/Support/Error.h 437 static const bool isRef = std::is_reference<T>::value;
439 using wrap = std::reference_wrapper<typename std::remove_reference<T>::type>;
444 using storage_type = typename std::conditional<isRef, wrap, T>::type;
445 using value_type = T;
448 using reference = typename std::remove_reference<T>::type &;
449 using const_reference = const typename std::remove_reference<T>::type &;
450 using pointer = typename std::remove_reference<T>::type *;
451 using const_pointer = const typename std::remove_reference<T>::type *;
474 Expected(OtherT &&Val,
475 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
475 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
483 new (getStorage()) storage_type(std::forward<OtherT>(Val));
492 Expected(Expected<OtherT> &&Other,
493 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
493 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
594 template <class OtherT> void moveConstruct(Expected<OtherT> &&Other) {
include/llvm/Support/ErrorOr.h 59 static const bool isRef = std::is_reference<T>::value;
61 using wrap = std::reference_wrapper<typename std::remove_reference<T>::type>;
64 using storage_type = typename std::conditional<isRef, wrap, T>::type;
67 using reference = typename std::remove_reference<T>::type &;
68 using const_reference = const typename std::remove_reference<T>::type &;
69 using pointer = typename std::remove_reference<T>::type *;
70 using const_pointer = const typename std::remove_reference<T>::type *;
87 ErrorOr(OtherT &&Val,
88 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
88 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type
91 new (getStorage()) storage_type(std::forward<OtherT>(Val));
100 const ErrorOr<OtherT> &Other,
101 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
101 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
120 ErrorOr<OtherT> &&Other,
121 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
121 typename std::enable_if<std::is_convertible<OtherT, T>::value>::type * =
209 void moveConstruct(ErrorOr<OtherT> &&Other) {
222 void moveAssign(ErrorOr<OtherT> &&Other) {
include/llvm/Support/FileSystem.h 112 inline perms operator|(perms l, perms r) {
112 inline perms operator|(perms l, perms r) {
112 inline perms operator|(perms l, perms r) {
116 inline perms operator&(perms l, perms r) {
116 inline perms operator&(perms l, perms r) {
116 inline perms operator&(perms l, perms r) {
120 inline perms &operator|=(perms &l, perms r) {
120 inline perms &operator|=(perms &l, perms r) {
120 inline perms &operator|=(perms &l, perms r) {
124 inline perms &operator&=(perms &l, perms r) {
124 inline perms &operator&=(perms &l, perms r) {
124 inline perms &operator&=(perms &l, perms r) {
128 inline perms operator~(perms x) {
128 inline perms operator~(perms x) {
176 perms Perms = perms_not_known;
184 basic_file_status(file_type Type, perms Perms, time_t ATime,
205 perms permissions() const { return Perms; }
242 void permissions(perms p) { Perms = p; }
266 file_status(file_type Type, perms Perms, dev_t Dev, nlink_t Links, ino_t Ino,
327 perms Perms = owner_all | group_all);
336 perms Perms = owner_all | group_all);
673 std::error_code setPermissions(const Twine &Path, perms Permissions);
678 std::error_code setPermissions(int FD, perms Permissions);
688 ErrorOr<perms> getPermissions(const Twine &Path);
include/llvm/Support/Format.h 83 static_assert(std::is_scalar<Arg>::value,
91 std::tuple<Ts...> Vals;
104 format_object(const char *fmt, const Ts &... vals)
124 inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
124 inline format_object<Ts...> format(const char *Fmt, const Ts &... Vals) {
include/llvm/Support/VirtualFileSystem.h 53 llvm::sys::fs::perms Perms;
64 llvm::sys::fs::perms Perms);
77 llvm::sys::fs::perms getPermissions() const { return Perms; }
426 Optional<llvm::sys::fs::perms> Perms,
443 Optional<llvm::sys::fs::perms> Perms = None);
469 Optional<llvm::sys::fs::perms> Perms = None);
include/llvm/Support/type_traits.h 91 T t;
122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
122 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<const F &>(), std::true_type{});
130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
130 static auto get(F*) -> decltype(std::declval<F &>() = std::declval<F &&>(), std::true_type{});
145 std::is_copy_constructible<detail::trivial_helper<T>>::value;
147 !std::is_copy_constructible<T>::value;
151 std::is_move_constructible<detail::trivial_helper<T>>::value;
153 !std::is_move_constructible<T>::value;
157 is_copy_assignable<detail::trivial_helper<T>>::value;
159 !is_copy_assignable<T>::value;
163 is_move_assignable<detail::trivial_helper<T>>::value;
165 !is_move_assignable<T>::value;
169 std::is_destructible<detail::trivial_helper<T>>::value;
lib/Object/Archive.cpp 244 Expected<sys::fs::perms> ArchiveMemberHeader::getAccessMode() const {
lib/Object/ArchiveWriter.cpp 68 Expected<sys::fs::perms> AccessModeOrErr = OldMember.getAccessMode();
lib/Support/Path.cpp 916 perms Perms) {
1099 ErrorOr<perms> getPermissions(const Twine &Path) {
lib/Support/Unix/Path.inc 331 perms Perms) {
673 perms Perms = static_cast<perms>(Status.st_mode) & all_perms;
705 std::error_code setPermissions(const Twine &Path, perms Permissions) {
714 std::error_code setPermissions(int FD, perms Permissions) {
lib/Support/VirtualFileSystem.cpp 73 perms Perms)
683 llvm::sys::fs::perms::all_all))),
697 Optional<llvm::sys::fs::perms> Perms,
718 const auto ResolvedPerms = Perms.getValueOr(sys::fs::all_all);
722 const auto NewDirectoryPerms = ResolvedPerms | sys::fs::owner_all;
788 Optional<llvm::sys::fs::perms> Perms) {
798 Optional<llvm::sys::fs::perms> Perms) {
tools/clang/unittests/Basic/FileManagerTest.cpp 44 llvm::sys::fs::perms::all_all);
tools/dsymutil/DwarfLinker.cpp 2513 sys::fs::perms::all_all)))
tools/dsymutil/dsymutil.cpp 342 create_directories(Bundle.str(), true, sys::fs::perms::all_all))
tools/lldb/source/Host/common/FileSystem.cpp 149 return sys::fs::perms::perms_not_known;
161 return GetPermissions(path) & sys::fs::perms::all_read;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp 817 auto perms =
tools/lldb/source/Target/ModuleCache.cpp 69 return fs::create_directories(dir_path.GetPath(), true, fs::perms::owner_all);
tools/lldb/source/Target/Platform.cpp 792 auto Perms = static_cast<llvm::sys::fs::perms>(file_permissions);
tools/lldb/unittests/Host/FileSystemTest.cpp 135 void addRegularFile(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) {
142 void addDirectory(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) {
181 D->addRegularFile("/qux", ~sys::fs::perms::all_read);
tools/llvm-ar/llvm-ar.cpp 463 Expected<sys::fs::perms> ModeOrErr = C.getAccessMode();
465 sys::fs::perms Mode = ModeOrErr.get();
529 Expected<sys::fs::perms> ModeOrErr = C.getAccessMode();
531 sys::fs::perms Mode = ModeOrErr.get();
tools/llvm-objdump/MachODump.cpp 2222 sys::fs::perms Mode =
tools/llvm-objdump/llvm-objdump.cpp 2044 Expected<sys::fs::perms> ModeOrErr = C.getAccessMode();
2050 sys::fs::perms Mode = ModeOrErr.get();
tools/llvm-objdump/llvm-objdump.h 149 T unwrapOrError(Expected<T> EO, Ts &&... Args) {
149 T unwrapOrError(Expected<T> EO, Ts &&... Args) {
unittests/Support/Path.cpp 1605 fs::perms AllRWE = static_cast<fs::perms>(0777);
1609 ErrorOr<fs::perms> Perms = fs::getPermissions(TempPath);
1672 ErrorOr<fs::perms> Actual = fs::getPermissions(TempPath);
unittests/Support/VirtualFileSystemTest.cpp 150 void addRegularFile(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) {
157 void addDirectory(StringRef Path, sys::fs::perms Perms = sys::fs::all_all) {
1164 sys::fs::perms::owner_read | sys::fs::perms::owner_write);
1164 sys::fs::perms::owner_read | sys::fs::perms::owner_write);
usr/include/c++/7.4.0/bits/move.h 72 constexpr _Tp&&
73 forward(typename std::remove_reference<_Tp>::type& __t) noexcept
83 constexpr _Tp&&
84 forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
98 move(_Tp&& __t) noexcept
usr/include/c++/7.4.0/tuple 56 struct __is_empty_non_tuple : is_empty<_Tp> { };
125 constexpr _Head_base(const _Head& __h)
132 constexpr _Head_base(_UHead&& __h)
133 : _M_head_impl(std::forward<_UHead>(__h)) { }
159 static constexpr _Head&
162 static constexpr const _Head&
165 _Head _M_head_impl;
344 : private _Head_base<_Idx, _Head>
348 typedef _Head_base<_Idx, _Head> _Base;
350 static constexpr _Head&
353 static constexpr const _Head&
360 constexpr _Tuple_impl(const _Head& __head)
365 constexpr _Tuple_impl(_UHead&& __head)
373 : _Base(std::forward<_Head>(_M_head(__in))) { }
376 constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in)
380 constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in)
390 const _Head& __head)
473 return __and_<is_constructible<_Elements, const _UElements&>...>::value;
473 return __and_<is_constructible<_Elements, const _UElements&>...>::value;
479 return __and_<is_convertible<const _UElements&, _Elements>...>::value;
479 return __and_<is_convertible<const _UElements&, _Elements>...>::value;
485 return __and_<is_constructible<_Elements, _UElements&&>...>::value;
485 return __and_<is_constructible<_Elements, _UElements&&>...>::value;
491 return __and_<is_convertible<_UElements&&, _Elements>...>::value;
491 return __and_<is_convertible<_UElements&&, _Elements>...>::value;
497 return __and_<__not_<is_same<tuple<_Elements...>,
501 __not_<is_convertible<_SrcTuple, _Elements...>>,
502 __not_<is_constructible<_Elements..., _SrcTuple>>
508 return __not_<is_same<tuple<_Elements...>,
556 class tuple : public _Tuple_impl<0, _Elements...>
558 typedef _Tuple_impl<0, _Elements...> _Inherited;
598 _Elements...>;
608 constexpr tuple(const _Elements&... __elements)
619 explicit constexpr tuple(const _Elements&... __elements)
628 _Elements...>;
636 _Elements...>;
646 constexpr tuple(_UElements&&... __elements)
668 _Elements...>;
730 const _Elements&... __elements)
741 const _Elements&... __elements)
853 operator=(const tuple<_UElements...>& __in)
863 operator=(tuple<_UElements...>&& __in)
1288 typedef _Head type;
1302 constexpr _Head&
1303 __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
1307 constexpr const _Head&
1308 __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept
1309 { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); }
1313 constexpr __tuple_element_t<__i, tuple<_Elements...>>&
1313 constexpr __tuple_element_t<__i, tuple<_Elements...>>&
1314 get(tuple<_Elements...>& __t) noexcept
1319 constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
1319 constexpr const __tuple_element_t<__i, tuple<_Elements...>>&
1320 get(const tuple<_Elements...>& __t) noexcept
1325 constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
1325 constexpr __tuple_element_t<__i, tuple<_Elements...>>&&
1326 get(tuple<_Elements...>&& __t) noexcept
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
326 : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
354 : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
588 : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
611 : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
612 is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
762 typename add_rvalue_reference<_Tp>::type declval() noexcept;
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
777 : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
825 : public __is_destructible_safe<_Tp>::type
984 typedef decltype(__test<_Tp, _Arg>(0)) type;
989 : public __and_<is_destructible<_Tp>,
990 __is_direct_constructible_impl<_Tp, _Arg>>
1072 __is_direct_constructible_ref_cast<_Tp, _Arg>,
1073 __is_direct_constructible_new_safe<_Tp, _Arg>
1079 : public __is_direct_constructible_new<_Tp, _Arg>::type
1119 : public __is_direct_constructible<_Tp, _Arg>
1130 : public __is_constructible_impl<_Tp, _Args...>::type
1142 : public is_constructible<_Tp, const _Tp&>
1142 : public is_constructible<_Tp, const _Tp&>
1148 : public __is_copy_constructible_impl<_Tp>
1160 : public is_constructible<_Tp, _Tp&&>
1160 : public is_constructible<_Tp, _Tp&&>
1166 : public __is_move_constructible_impl<_Tp>
1215 : public __and_<is_constructible<_Tp, _Args...>,
1216 __is_nt_constructible_impl<_Tp, _Args...>>
1246 : public is_nothrow_constructible<_Tp, _Tp&&>
1246 : public is_nothrow_constructible<_Tp, _Tp&&>
1252 : public __is_nothrow_move_constructible_impl<_Tp>
1526 static void __test_aux(_To1);
1538 typedef decltype(__test<_From, _To>(0)) type;
1538 typedef decltype(__test<_From, _To>(0)) type;
1545 : public __is_convertible_helper<_From, _To>::type
1545 : public __is_convertible_helper<_From, _To>::type
1554 { typedef _Tp type; };
1558 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1629 { typedef _Tp type; };
1633 { typedef _Tp type; };
1659 { typedef _Tp&& type; };
1664 : public __add_rvalue_reference_helper<_Tp>
2171 { typedef _Iffalse type; };
utils/unittest/googletest/include/gtest/gtest-printers.h 223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
276 static ::std::string Format(const ToPrint& value) {
351 const T1& value, const T2& /* other_operand */) {
351 const T1& value, const T2& /* other_operand */) {
352 return FormatForComparison<T1, T2>::Format(value);
352 return FormatForComparison<T1, T2>::Format(value);
366 void UniversalPrint(const T& value, ::std::ostream* os);
373 const C& container, ::std::ostream* os) {
439 const T& value, ::std::ostream* os) {
455 void PrintTo(const T& value, ::std::ostream* os) {
478 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
699 static void Print(const T& value, ::std::ostream* os) {
784 static void Print(const T& value, ::std::ostream* os) {
856 typedef T T1;
983 internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h 1377 const T1& lhs, const T2& rhs) {
1377 const T1& lhs, const T2& rhs) {
1389 const T1& lhs,
1390 const T2& rhs) {
1419 const T1& lhs,
1420 const T2& rhs) {
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h 35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
37 return StreamSwitch<T>::printable(V);
54 const T& V;
55 friend std::ostream &operator<<(std::ostream &S, const RawStreamProxy<T> &V) {
69 static const RawStreamProxy<T> printable(const T &V) { return {V}; }
69 static const RawStreamProxy<T> printable(const T &V) { return {V}; }
utils/unittest/googletest/include/gtest/internal/gtest-internal.h 94 ::std::string PrintToString(const T& value);