|
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/Support/FileSystem.h 175 file_type Type = file_type::status_error;
175 file_type Type = file_type::status_error;
181 explicit basic_file_status(file_type Type) : Type(Type) {}
184 basic_file_status(file_type Type, perms Perms, time_t ATime,
204 file_type type() const { return Type; }
241 void type(file_type v) { Type = v; }
263 explicit file_status(file_type Type) : basic_file_status(Type) {}
266 file_status(file_type Type, perms Perms, dev_t Dev, nlink_t Links, ino_t Ino,
548 file_type get_file_type(const Twine &Path, bool Follow = true);
1218 file_type Type = file_type::type_unknown; // Most platforms can provide this.
1218 file_type Type = file_type::type_unknown; // Most platforms can provide this.
1224 file_type Type = file_type::type_unknown,
1224 file_type Type = file_type::type_unknown,
1231 void replace_filename(const Twine &Filename, file_type Type,
1242 file_type type() const {
1243 if (Type != file_type::type_unknown)
1246 return S ? S->type() : file_type::type_unknown;
1364 file_type type = State->Stack.top()->type();
1365 if (type == file_type::symlink_file && Follow) {
1372 if (type == file_type::directory_file) {
include/llvm/Support/VirtualFileSystem.h 52 llvm::sys::fs::file_type Type = llvm::sys::fs::file_type::status_error;
52 llvm::sys::fs::file_type Type = llvm::sys::fs::file_type::status_error;
63 uint64_t Size, llvm::sys::fs::file_type Type,
76 llvm::sys::fs::file_type getType() const { return Type; }
129 llvm::sys::fs::file_type Type;
133 directory_entry(std::string Path, llvm::sys::fs::file_type Type)
137 llvm::sys::fs::file_type type() const { return Type; }
425 Optional<llvm::sys::fs::file_type> Type,
442 Optional<llvm::sys::fs::file_type> Type = None,
468 Optional<llvm::sys::fs::file_type> Type = 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/ArchiveWriter.cpp 91 if (Status.type() == sys::fs::file_type::directory_file)
lib/Support/FileCollector.cpp 143 if (Stat.type() == sys::fs::file_type::directory_file) {
222 if (It->type() == sys::fs::file_type::regular_file ||
223 It->type() == sys::fs::file_type::directory_file ||
224 It->type() == sys::fs::file_type::symlink_file) {
lib/Support/FileOutputBuffer.cpp 187 case fs::file_type::directory_file:
189 case fs::file_type::regular_file:
190 case fs::file_type::file_not_found:
191 case fs::file_type::status_error:
lib/Support/MemoryBuffer.cpp 384 sys::fs::file_type Type = Status.type();
385 if (Type != sys::fs::file_type::regular_file &&
386 Type != sys::fs::file_type::block_file)
436 sys::fs::file_type Type = Status.type();
437 if (Type != sys::fs::file_type::regular_file &&
438 Type != sys::fs::file_type::block_file)
lib/Support/Path.cpp 1026 return status_known(status) && status.type() != file_type::file_not_found;
1030 return s.type() != file_type::status_error;
1033 file_type get_file_type(const Twine &Path, bool Follow) {
1036 return file_type::status_error;
1041 return status.type() == file_type::directory_file;
1053 return status.type() == file_type::regular_file;
1065 return status.type() == file_type::symlink_file;
1090 void directory_entry::replace_filename(const Twine &Filename, file_type Type,
lib/Support/Unix/Path.inc 633 static file_type typeForMode(mode_t Mode) {
635 return file_type::directory_file;
637 return file_type::regular_file;
639 return file_type::block_file;
641 return file_type::character_file;
643 return file_type::fifo_file;
645 return file_type::socket_file;
647 return file_type::symlink_file;
648 return file_type::type_unknown;
656 Result = file_status(file_type::file_not_found);
658 Result = file_status(file_type::status_error);
833 static file_type direntType(dirent* Entry) {
lib/Support/VirtualFileSystem.cpp 72 uint32_t User, uint32_t Group, uint64_t Size, file_type Type,
94 bool Status::isDirectory() const { return Type == file_type::directory_file; }
96 bool Status::isRegularFile() const { return Type == file_type::regular_file; }
102 bool Status::isSymlink() const { return Type == file_type::symlink_file; }
104 bool Status::isStatusKnown() const { return Type != file_type::status_error; }
107 return isStatusKnown() && Type != file_type::file_not_found;
181 llvm::sys::fs::file_type::status_error, {}),
682 0, llvm::sys::fs::file_type::directory_file,
696 Optional<llvm::sys::fs::file_type> Type,
717 const auto ResolvedType = Type.getValueOr(sys::fs::file_type::regular_file);
717 const auto ResolvedType = Type.getValueOr(sys::fs::file_type::regular_file);
739 if (ResolvedType == sys::fs::file_type::directory_file) {
754 ResolvedUser, ResolvedGroup, 0, sys::fs::file_type::directory_file,
787 Optional<llvm::sys::fs::file_type> Type,
797 Optional<llvm::sys::fs::file_type> Type,
897 sys::fs::file_type Type;
901 Type = sys::fs::file_type::regular_file;
904 Type = sys::fs::file_type::directory_file;
1242 file_type::directory_file, sys::fs::all_all));
1459 file_type::directory_file, sys::fs::all_all));
1478 file_type::directory_file, sys::fs::all_all));
2076 sys::fs::file_type Type;
2079 Type = sys::fs::file_type::directory_file;
2082 Type = sys::fs::file_type::regular_file;
2123 if (State->Stack.top()->type() == sys::fs::file_type::directory_file) {
tools/clang/lib/Basic/FileManager.cpp 317 UFE.IsNamedPipe = Status.getType() == llvm::sys::fs::file_type::fifo_file;
384 UFE->IsNamedPipe = Status.getType() == llvm::sys::fs::file_type::fifo_file;
tools/clang/lib/Format/Format.cpp 2608 Status->getType() != llvm::sys::fs::file_type::directory_file) {
2619 Status && (Status->getType() == llvm::sys::fs::file_type::regular_file);
2627 llvm::sys::fs::file_type::regular_file);
tools/clang/lib/Sema/SemaCodeComplete.cpp 8700 case llvm::sys::fs::file_type::directory_file:
8709 case llvm::sys::fs::file_type::regular_file:
tools/clang/tools/extra/clangd/unittests/FSTests.cpp 39 llvm::sys::fs::file_type::regular_file,
tools/clang/tools/extra/modularize/CoverageChecker.cpp 254 sys::fs::file_type Type = Status->type();
256 if (Type == sys::fs::file_type::directory_file) {
378 sys::fs::file_type type = Status->type();
380 if (type == sys::fs::file_type::directory_file)
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp 414 llvm::sys::fs::file_type Type = Status->type();
416 if (Type == llvm::sys::fs::file_type::directory_file) {
tools/clang/unittests/Basic/FileManagerTest.cpp 38 auto fileType = IsFile ?
39 llvm::sys::fs::file_type::regular_file :
40 llvm::sys::fs::file_type::directory_file;
tools/clang/unittests/Lex/HeaderSearchTest.cpp 41 /*Group=*/None, llvm::sys::fs::file_type::directory_file);
tools/lldb/include/lldb/Host/FileSystem.h 168 void *baton, llvm::sys::fs::file_type file_type, llvm::StringRef);
171 llvm::sys::fs::file_type file_type, llvm::StringRef)>
tools/lldb/source/Core/Debugger.cpp 556 LoadPluginCallback(void *baton, llvm::sys::fs::file_type ft,
573 if (ft == fs::file_type::regular_file || ft == fs::file_type::symlink_file ||
573 if (ft == fs::file_type::regular_file || ft == fs::file_type::symlink_file ||
574 ft == fs::file_type::type_unknown) {
587 } else if (ft == fs::file_type::directory_file ||
588 ft == fs::file_type::symlink_file ||
589 ft == fs::file_type::type_unknown) {
tools/lldb/source/Core/PluginManager.cpp 93 LoadPluginCallback(void *baton, llvm::sys::fs::file_type ft,
103 if (ft == fs::file_type::regular_file || ft == fs::file_type::symlink_file ||
103 if (ft == fs::file_type::regular_file || ft == fs::file_type::symlink_file ||
104 ft == fs::file_type::type_unknown) {
146 if (ft == fs::file_type::directory_file ||
147 ft == fs::file_type::symlink_file || ft == fs::file_type::type_unknown) {
147 ft == fs::file_type::symlink_file || ft == fs::file_type::type_unknown) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp 1390 void *baton, llvm::sys::fs::file_type file_type, llvm::StringRef path) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h 109 DirectoryEnumerator(void *baton, llvm::sys::fs::file_type file_type,
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp 136 void *baton, llvm::sys::fs::file_type ft, llvm::StringRef path) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h 82 llvm::sys::fs::file_type ft,
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 2720 if (ec || st.type() == fs::file_type::status_error ||
2721 st.type() == fs::file_type::type_unknown ||
2722 st.type() == fs::file_type::file_not_found) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp 671 if (fs::get_file_type(path.GetPath(), false) != fs::file_type::symlink_file)
tools/lldb/source/Target/Platform.cpp 547 RecurseCopy_Callback(void *baton, llvm::sys::fs::file_type ft,
553 case fs::file_type::fifo_file:
554 case fs::file_type::socket_file:
559 case fs::file_type::directory_file: {
590 case fs::file_type::symlink_file: {
612 case fs::file_type::regular_file: {
699 case fs::file_type::directory_file: {
718 case fs::file_type::regular_file:
723 case fs::file_type::symlink_file: {
730 case fs::file_type::fifo_file:
733 case fs::file_type::socket_file:
tools/lldb/unittests/Host/FileSystemTest.cpp 138 sys::fs::file_type::regular_file, Perms);
145 sys::fs::file_type::directory_file, Perms);
152 sys::fs::file_type::symlink_file, sys::fs::all_all);
269 VFSCallback(void *baton, llvm::sys::fs::file_type file_type,
tools/llvm-cov/CodeCoverage.cpp 224 if (Status->type() == llvm::sys::fs::file_type::regular_file)
tools/llvm-dwarfdump/llvm-dwarfdump.cpp 551 case sys::fs::file_type::regular_file:
552 case sys::fs::file_type::symlink_file:
553 case sys::fs::file_type::type_unknown:
tools/llvm-objcopy/llvm-objcopy.cpp 235 if (OStat.type() == sys::fs::file_type::regular_file)
unittests/Support/VirtualFileSystemTest.cpp 153 sys::fs::file_type::regular_file, Perms);
160 sys::fs::file_type::directory_file, Perms);
167 sys::fs::file_type::symlink_file, sys::fs::all_all);
1149 sys::fs::file_type::socket_file);
1186 /*Group=*/None, sys::fs::file_type::directory_file);
1188 /*Group=*/None, sys::fs::file_type::regular_file);
1202 /*Group=*/None, sys::fs::file_type::regular_file);
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/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
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>
1554 { 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; };
utils/unittest/googletest/include/gtest/gtest-printers.h 140 static void PrintValue(const T& value, ::std::ostream* os) {
205 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
206 TypeWithoutFormatter<T,
207 (internal::IsAProtocolMessage<T>::value ? kProtobuf :
208 internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ?
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 29 static const T& printable(const T& V) { return V; }
29 static const T& printable(const T& V) { return V; }
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);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h 94 ::std::string PrintToString(const T& value);