Skip to content

Commit ade3d4c

Browse files
committed
Addressed comments
1 parent 5b4edbd commit ade3d4c

File tree

4 files changed

+6
-76
lines changed

4 files changed

+6
-76
lines changed

libcxx/include/fstream

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public:
269269
_LIBCPP_HIDE_FROM_ABI basic_filebuf* __open(int __fd, ios_base::openmode __mode);
270270
basic_filebuf* close();
271271
# if _LIBCPP_STD_VER >= 26
272-
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept {
272+
_LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept {
273273
_LIBCPP_ASSERT_UNCATEGORIZED(this->is_open(), "File must be opened");
274274
# if defined(_LIBCPP_WIN32API)
275275
return std::__filebuf_windows_native_handle(__file_);
@@ -1178,9 +1178,7 @@ public:
11781178

11791179
_LIBCPP_HIDE_FROM_ABI basic_filebuf<char_type, traits_type>* rdbuf() const;
11801180
# if _LIBCPP_STD_VER >= 26
1181-
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept {
1182-
return rdbuf()->native_handle();
1183-
}
1181+
_LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept { return rdbuf()->native_handle(); }
11841182
# endif
11851183
_LIBCPP_HIDE_FROM_ABI bool is_open() const;
11861184
void open(const char* __s, ios_base::openmode __mode = ios_base::in);
@@ -1336,9 +1334,7 @@ public:
13361334

13371335
_LIBCPP_HIDE_FROM_ABI basic_filebuf<char_type, traits_type>* rdbuf() const;
13381336
# if _LIBCPP_STD_VER >= 26
1339-
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept {
1340-
return rdbuf()->native_handle();
1341-
}
1337+
_LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept { return rdbuf()->native_handle(); }
13421338
# endif
13431339
_LIBCPP_HIDE_FROM_ABI bool is_open() const;
13441340
void open(const char* __s, ios_base::openmode __mode = ios_base::out);
@@ -1500,9 +1496,7 @@ public:
15001496

15011497
_LIBCPP_HIDE_FROM_ABI basic_filebuf<char_type, traits_type>* rdbuf() const;
15021498
# if _LIBCPP_STD_VER >= 26
1503-
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept {
1504-
return rdbuf()->native_handle();
1505-
}
1499+
_LIBCPP_HIDE_FROM_ABI native_handle_type native_handle() const noexcept { return rdbuf()->native_handle(); }
15061500
# endif
15071501
_LIBCPP_HIDE_FROM_ABI bool is_open() const;
15081502
_LIBCPP_HIDE_FROM_ABI void open(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out);

libcxx/include/span

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public:
362362
}
363363

364364
# if _LIBCPP_STD_VER >= 26
365-
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr reference at(size_type __index) const {
365+
_LIBCPP_HIDE_FROM_ABI constexpr reference at(size_type __index) const {
366366
if (__index >= size())
367367
std::__throw_out_of_range("span");
368368
return __data_[__index];
@@ -527,7 +527,7 @@ public:
527527
}
528528

529529
# if _LIBCPP_STD_VER >= 26
530-
[[nodiscard]] _LIBCPP_HIDE_FROM_ABI constexpr reference at(size_type __index) const {
530+
_LIBCPP_HIDE_FROM_ABI constexpr reference at(size_type __index) const {
531531
if (__index >= size())
532532
std::__throw_out_of_range("span");
533533
return __data_[__index];

libcxx/test/libcxx/containers/views/views.span/nodiscard.verify.cpp

Lines changed: 0 additions & 30 deletions
This file was deleted.

libcxx/test/libcxx/input.output/file.streams/fstreams/nodiscard.verify.cpp

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)