|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
Derived Classes
tools/lldb/include/lldb/Host/File.h 377 class NativeFile : public File {
Declarations
tools/lldb/include/lldb/lldb-forward.h 100 class File;
References
gen/tools/lldb/scripts/LLDBWrapPython.cpp15579 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
15672 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
16289 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
16327 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
16365 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
16492 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
20751 SwigValueWrapper< std::shared_ptr< lldb_private::File > > result;
20791 SwigValueWrapper< std::shared_ptr< lldb_private::File > > result;
20831 SwigValueWrapper< std::shared_ptr< lldb_private::File > > result;
20997 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
21090 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
21183 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
21528 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg4 ;
21529 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg5 ;
29188 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
29278 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
29308 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
29338 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg1 ;
29606 SwigValueWrapper< std::shared_ptr< lldb_private::File > > result;
33835 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
34514 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
43968 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg3 ;
49093 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
49205 SwigValueWrapper< std::shared_ptr< lldb_private::File > > arg2 ;
include/llvm/Support/Casting.h 57 static inline bool doit(const From &Val) {
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
266 typename simplify_type<Y*>::SimpleType>::doit(Val);
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
tools/lldb/include/lldb/Core/Debugger.h 123 File &GetInputFile() { return *m_input_file_sp; }
125 File &GetOutputFile() { return m_output_stream_sp->GetFile(); }
127 File &GetErrorFile() { return m_error_stream_sp->GetFile(); }
tools/lldb/include/lldb/Core/StreamFile.h 33 StreamFile(const char *path, File::OpenOptions options,
38 StreamFile(std::shared_ptr<File> file) : m_file_sp(file) { assert(file); };
42 File &GetFile() { return *m_file_sp; }
44 const File &GetFile() const { return *m_file_sp; }
46 std::shared_ptr<File> GetFileSP() { return m_file_sp; }
53 std::shared_ptr<File> m_file_sp; // never NULL
tools/lldb/include/lldb/Host/File.h 364 static bool classof(const File *file) { return file->isA(&ID); }
377 class NativeFile : public File {
418 static bool classof(const File *file) { return file->isA(&ID); }
422 return File::DescriptorIsValid(m_descriptor);
tools/lldb/include/lldb/Host/FileCache.h 31 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
tools/lldb/include/lldb/Host/FileSystem.h 66 llvm::Expected<std::unique_ptr<File>>
67 Open(const FileSpec &file_spec, File::OpenOptions options,
tools/lldb/include/lldb/Target/Platform.h 510 File::OpenOptions flags, uint32_t mode,
tools/lldb/include/lldb/Target/RemoteAwarePlatform.h 25 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
tools/lldb/include/lldb/lldb-forward.h 335 typedef std::unique_ptr<lldb_private::File> FileUP;
336 typedef std::shared_ptr<lldb_private::File> FileSP;
tools/lldb/source/API/SBDebugger.cpp 395 File &file_sp = m_opaque_sp->GetInputFile();
tools/lldb/source/API/SBFile.cpp 33 auto options = File::GetOptionsFromMode(mode);
tools/lldb/source/API/SBStream.cpp 86 auto open_options = File::eOpenOptionWrite | File::eOpenOptionCanCreate;
86 auto open_options = File::eOpenOptionWrite | File::eOpenOptionCanCreate;
88 open_options |= File::eOpenOptionAppend;
90 open_options |= File::eOpenOptionTruncate;
tools/lldb/source/Commands/CommandObjectGUI.cpp 31 File &input = debugger.GetInputFile();
32 File &output = debugger.GetOutputFile();
tools/lldb/source/Commands/CommandObjectMemory.cpp 776 auto open_options = File::eOpenOptionWrite | File::eOpenOptionCanCreate;
776 auto open_options = File::eOpenOptionWrite | File::eOpenOptionCanCreate;
779 open_options |= File::eOpenOptionAppend;
tools/lldb/source/Commands/CommandObjectPlatform.cpp 509 File::eOpenOptionRead | File::eOpenOptionWrite |
509 File::eOpenOptionRead | File::eOpenOptionWrite |
510 File::eOpenOptionAppend | File::eOpenOptionCanCreate,
510 File::eOpenOptionAppend | File::eOpenOptionCanCreate,
tools/lldb/source/Commands/CommandObjectSettings.cpp 378 auto options = File::eOpenOptionWrite | File::eOpenOptionCanCreate;
378 auto options = File::eOpenOptionWrite | File::eOpenOptionCanCreate;
380 options |= File::eOpenOptionAppend;
382 options |= File::eOpenOptionTruncate;
tools/lldb/source/Core/Debugger.cpp 845 if (fd != File::kInvalidDescriptor)
tools/lldb/source/Core/StreamFile.cpp 19 StreamFile::StreamFile() : Stream() { m_file_sp = std::make_shared<File>(); }
23 m_file_sp = std::make_shared<File>();
28 std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, transfer_ownership);
37 FileSpec(path), File::eOpenOptionWrite | File::eOpenOptionCanCreate |
37 FileSpec(path), File::eOpenOptionWrite | File::eOpenOptionCanCreate |
38 File::eOpenOptionCloseOnExec);
45 m_file_sp = std::make_shared<File>();
49 StreamFile::StreamFile(const char *path, File::OpenOptions options,
59 m_file_sp = std::make_shared<File>();
tools/lldb/source/Expression/REPL.cpp 403 File::eOpenOptionWrite | File::eOpenOptionTruncate |
403 File::eOpenOptionWrite | File::eOpenOptionTruncate |
404 File::eOpenOptionCanCreate,
tools/lldb/source/Host/common/File.cpp 43 File::GetStreamOpenModeFromOptions(File::OpenOptions options) {
44 if (options & File::eOpenOptionAppend) {
45 if (options & File::eOpenOptionRead) {
46 if (options & File::eOpenOptionCanCreateNewOnly)
50 } else if (options & File::eOpenOptionWrite) {
51 if (options & File::eOpenOptionCanCreateNewOnly)
56 } else if (options & File::eOpenOptionRead &&
57 options & File::eOpenOptionWrite) {
58 if (options & File::eOpenOptionCanCreate) {
59 if (options & File::eOpenOptionCanCreateNewOnly)
65 } else if (options & File::eOpenOptionRead) {
67 } else if (options & File::eOpenOptionWrite) {
75 Expected<File::OpenOptions> File::GetOptionsFromMode(llvm::StringRef mode) {
228 Expected<File::OpenOptions> File::GetOptions() const {
249 Expected<File::OpenOptions> NativeFile::GetOptions() const { return m_options; }
tools/lldb/source/Host/common/FileCache.cpp 27 File::OpenOptions flags, uint32_t mode,
tools/lldb/source/Host/common/FileSystem.cpp 353 const bool read = options & File::eOpenOptionRead;
354 const bool write = options & File::eOpenOptionWrite;
363 if (options & File::eOpenOptionAppend)
366 if (options & File::eOpenOptionTruncate)
369 if (options & File::eOpenOptionCanCreate)
372 if (options & File::eOpenOptionCanCreateNewOnly)
378 if (options & File::eOpenOptionDontFollowSymlinks)
384 if (options & File::eOpenOptionNonBlocking)
386 if (options & File::eOpenOptionCloseOnExec)
419 File::OpenOptions options,
435 if (!File::DescriptorIsValid(descriptor))
tools/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp 89 m_write_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, owns_fd);
90 m_read_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionRead, false);
222 std::make_shared<NativeFile>(fd, File::eOpenOptionRead, false);
224 std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, false);
273 m_read_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionRead, true);
274 m_write_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, false);
tools/lldb/source/Interpreter/CommandInterpreter.cpp 2343 FileSystem::Instance().Open(cmd_file, File::eOpenOptionRead);
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp 916 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true);
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp 2654 file_spec, File::eOpenOptionWrite | File::eOpenOptionCanCreate |
2654 file_spec, File::eOpenOptionWrite | File::eOpenOptionCanCreate |
2655 File::eOpenOptionTruncate);
4589 outfile_spec, File::eOpenOptionWrite | File::eOpenOptionCanCreate);
4589 outfile_spec, File::eOpenOptionWrite | File::eOpenOptionCanCreate);
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp 6244 outfile, File::eOpenOptionWrite | File::eOpenOptionTruncate |
6244 outfile, File::eOpenOptionWrite | File::eOpenOptionTruncate |
6245 File::eOpenOptionCanCreate);
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp 351 user_id_t fd_src = OpenFile(source, File::eOpenOptionRead,
364 destination, File::eOpenOptionCanCreate | File::eOpenOptionWrite |
364 destination, File::eOpenOptionCanCreate | File::eOpenOptionWrite |
365 File::eOpenOptionTruncate,
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp 632 File::OpenOptions flags,
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h 116 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp 2919 File::OpenOptions flags, mode_t mode,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h 354 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp 524 int descriptor = File::kInvalidDescriptor;
585 NativeFile file(fd, File::eOpenOptionRead, false);
617 NativeFile file(fd, File::eOpenOptionWrite, false);
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp 102 FileSpec(path), File::eOpenOptionWrite | File::eOpenOptionCanCreate);
102 FileSpec(path), File::eOpenOptionWrite | File::eOpenOptionCanCreate);
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp 1079 llvm::Expected<File::OpenOptions>
1096 return File::GetOptionsFromMode(py_mode.GetString());
1155 static bool classof(const File *file) = delete;
1169 File::OpenOptions options)
1176 static bool classof(const File *file) { return file->isA(&ID); }
1388 if (options.get() & File::eOpenOptionWrite) {
1402 file_sp = std::static_pointer_cast<File>(
1481 Expected<PythonFile> PythonFile::FromFile(File &file, const char *mode) {
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h 668 static llvm::Expected<PythonFile> FromFile(File &file,
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 651 File &file = *file_sp;
925 File::eOpenOptionRead);
928 File::eOpenOptionWrite);
tools/lldb/source/Target/ModuleCache.cpp 162 m_file_spec, File::eOpenOptionWrite | File::eOpenOptionCanCreate |
162 m_file_spec, File::eOpenOptionWrite | File::eOpenOptionCanCreate |
163 File::eOpenOptionCloseOnExec);
tools/lldb/source/Target/Platform.cpp 1224 File::eOpenOptionRead | File::eOpenOptionCloseOnExec;
1224 File::eOpenOptionRead | File::eOpenOptionCloseOnExec;
1227 source_open_options |= File::eOpenOptionDontFollowSymlinks;
1239 destination, File::eOpenOptionCanCreate | File::eOpenOptionWrite |
1239 destination, File::eOpenOptionCanCreate | File::eOpenOptionWrite |
1240 File::eOpenOptionTruncate | File::eOpenOptionCloseOnExec,
1240 File::eOpenOptionTruncate | File::eOpenOptionCloseOnExec,
1638 auto src_fd = OpenFile(src_file_spec, File::eOpenOptionRead,
tools/lldb/source/Target/Process.cpp 4303 m_read_file(GetInputFD(), File::eOpenOptionRead, false),
4304 m_write_file(write_fd, File::eOpenOptionWrite, false) {
tools/lldb/source/Target/RemoteAwarePlatform.cpp 64 File::OpenOptions flags,
tools/lldb/source/Target/Target.cpp 999 File::eOpenOptionTruncate | File::eOpenOptionWrite |
999 File::eOpenOptionTruncate | File::eOpenOptionWrite |
1000 File::eOpenOptionCanCreate |
1001 File::eOpenOptionCloseOnExec,
tools/lldb/unittests/Host/FileSystemTest.cpp 299 auto file = fs.Open(spec, File::eOpenOptionRead, 0, true);
tools/lldb/unittests/Host/FileTest.cpp 49 NativeFile file(fd, File::eOpenOptionWrite, true);
tools/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp 585 File::eOpenOptionRead);
usr/include/c++/7.4.0/bits/alloc_traits.h 387 using allocator_type = allocator<_Tp>;
389 using value_type = _Tp;
392 using pointer = _Tp*;
395 using const_pointer = const _Tp*;
474 construct(allocator_type& __a, _Up* __p, _Args&&... __args)
486 destroy(allocator_type& __a, _Up* __p)
usr/include/c++/7.4.0/bits/allocator.h 108 class allocator: public __allocator_base<_Tp>
113 typedef _Tp* pointer;
114 typedef const _Tp* const_pointer;
115 typedef _Tp& reference;
116 typedef const _Tp& const_reference;
117 typedef _Tp value_type;
137 allocator(const allocator<_Tp1>&) throw() { }
usr/include/c++/7.4.0/bits/move.h 46 inline _GLIBCXX_CONSTEXPR _Tp*
47 __addressof(_Tp& __r) _GLIBCXX_NOEXCEPT
usr/include/c++/7.4.0/bits/shared_ptr.h 93 class shared_ptr : public __shared_ptr<_Tp>
107 using element_type = typename __shared_ptr<_Tp>::element_type;
236 shared_ptr(const shared_ptr<_Yp>& __r) noexcept
253 shared_ptr(shared_ptr<_Yp>&& __r) noexcept
277 shared_ptr(unique_ptr<_Yp, _Del>&& __r)
299 _Assignable<const shared_ptr<_Yp>&>
300 operator=(const shared_ptr<_Yp>& __r) noexcept
324 _Assignable<shared_ptr<_Yp>>
325 operator=(shared_ptr<_Yp>&& __r) noexcept
332 _Assignable<unique_ptr<_Yp, _Del>>
333 operator=(unique_ptr<_Yp, _Del>&& __r)
352 shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
479 inline shared_ptr<_Tp>
482 using _Sp = shared_ptr<_Tp>;
520 class weak_ptr : public __weak_ptr<_Tp>
582 shared_ptr<_Tp>
687 inline shared_ptr<_Tp>
702 inline shared_ptr<_Tp>
705 typedef typename std::remove_const<_Tp>::type _Tp_nc;
706 return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
usr/include/c++/7.4.0/bits/shared_ptr_base.h 653 __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0)
660 using _Ptr = typename unique_ptr<_Tp, _Del>::pointer;
882 : is_convertible<_Yp*, _Tp*>::type
882 : is_convertible<_Yp*, _Tp*>::type
956 using element_type = _Tp;
1035 : public __shared_ptr_access<_Tp, _Lp>
1038 using element_type = typename remove_extent<_Tp>::type;
1126 __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept
1138 __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept
1157 __shared_ptr(unique_ptr<_Yp, _Del>&& __r)
1192 _Assignable<_Yp>
1193 operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept
1218 _Assignable<_Yp>
1219 operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept
1226 _UniqAssignable<_Yp, _Del>
1227 operator=(unique_ptr<_Yp, _Del>&& __r)
1272 swap(__shared_ptr<_Tp, _Lp>& __other) noexcept
1321 rebind_traits<typename std::remove_cv<_Tp>::type> __traits;
1344 __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t)
1377 typename enable_if<!__has_esft_base<_Yp2>::value>::type
1378 _M_enable_shared_from_this_with(_Yp*) noexcept
1386 static _Tp1*
1387 _S_raw_ptr(_Tp1* __ptr)
1544 inline __shared_ptr<_Tp, _Lp>
1601 using element_type = typename remove_extent<_Tp>::type;
1626 __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept
1640 __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept
1648 _Assignable<_Yp>
1649 operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept
1675 _Assignable<_Yp>
1676 operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept
1684 __shared_ptr<_Tp, _Lp>
1720 _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept
usr/include/c++/7.4.0/bits/unique_ptr.h 68 default_delete(const default_delete<_Up>&) noexcept { }
72 operator()(_Tp* __ptr) const
74 static_assert(!is_void<_Tp>::value,
76 static_assert(sizeof(_Tp)>0,
122 using type = _Up*;
137 using pointer = typename _Ptr<_Tp, _Dp>::type;
161 typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
163 __uniq_ptr_impl<_Tp, _Dp> _M_t;
166 using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
167 using element_type = _Tp;
252 unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
297 __safe_conversion_up<_Up, _Ep>,
301 operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
usr/include/c++/7.4.0/ext/new_allocator.h 63 typedef _Tp* pointer;
64 typedef const _Tp* const_pointer;
65 typedef _Tp& reference;
66 typedef const _Tp& const_reference;
67 typedef _Tp value_type;
84 new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
111 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
130 { return size_t(-1) / sizeof(_Tp); }
135 construct(_Up* __p, _Args&&... __args)
136 { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
140 destroy(_Up* __p) { __p->~_Up(); }
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_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
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1645 { typedef _Tp& type; };
1650 : public __add_lvalue_reference_helper<_Tp>
1942 { typedef _Tp type; };
1983 { typedef _Up type; };