[libcxx-commits] [PATCH] D99422: [libc++] add `inline` for __open in ifstream and ofstream
Jason Liu via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 12 12:26:06 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG52e9d80d5db2: [libc++] add `inline` for __open's definition in ifstream and ofstream (authored by jasonliu).
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99422/new/
https://reviews.llvm.org/D99422
Files:
libcxx/include/fstream
Index: libcxx/include/fstream
===================================================================
--- libcxx/include/fstream
+++ libcxx/include/fstream
@@ -247,7 +247,7 @@
return open(__p.c_str(), __mode);
}
#endif
- inline _LIBCPP_INLINE_VISIBILITY
+ _LIBCPP_INLINE_VISIBILITY
basic_filebuf* __open(int __fd, ios_base::openmode __mode);
#endif
basic_filebuf* close();
@@ -577,7 +577,7 @@
}
template <class _CharT, class _Traits>
-inline _LIBCPP_INLINE_VISIBILITY
+inline
basic_filebuf<_CharT, _Traits>*
basic_filebuf<_CharT, _Traits>::__open(int __fd, ios_base::openmode __mode) {
basic_filebuf<_CharT, _Traits>* __rt = nullptr;
@@ -1329,6 +1329,7 @@
}
template <class _CharT, class _Traits>
+inline
void basic_ifstream<_CharT, _Traits>::__open(int __fd,
ios_base::openmode __mode) {
if (__sb_.__open(__fd, __mode | ios_base::in))
@@ -1542,6 +1543,7 @@
}
template <class _CharT, class _Traits>
+inline
void basic_ofstream<_CharT, _Traits>::__open(int __fd,
ios_base::openmode __mode) {
if (__sb_.__open(__fd, __mode | ios_base::out))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99422.336935.patch
Type: text/x-patch
Size: 1182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210412/2e70d9d6/attachment-0001.bin>
More information about the libcxx-commits
mailing list