Logo
Explore Help
Sign In
shylie/llvm-project
1
0
Fork 0
You've already forked llvm-project
Code Issues Pull Requests Actions 6 Packages Projects Releases Wiki Activity
llvm-project/libcxx/include/__expected
History
Hristo Hristov 9975cb166e
[libc++][expected] Applied [[nodiscard]] (#170245)
[[nodiscard]] should be applied to functions where discarding the return
value is most likely a correctness issue.

- https://libcxx.llvm.org/CodingGuidelines.html
- https://wg21.link/expected.bad.void
- https://wg21.link/expected.bad
- https://wg21.link/expected.expected
- https://wg21.link/expected.void
- https://wg21.link/expected.unexpected

It was already discussed not to mark the type `std::expected` as
`[[nodiscard]]` see:
https://github.com/llvm/llvm-project/pull/139651
https://github.com/llvm/llvm-project/pull/130820
Also:
https://github.com/llvm/llvm-project/pull/154943
2025-12-14 19:11:16 +02:00
..
bad_expected_access.h
[libc++][expected] Applied [[nodiscard]] (#170245)
2025-12-14 19:11:16 +02:00
expected.h
[libc++][expected] Applied [[nodiscard]] (#170245)
2025-12-14 19:11:16 +02:00
unexpect.h
[libc++] Add hide_from_abi check for classes
2023-04-16 15:23:23 +02:00
unexpected.h
[libc++][expected] Applied [[nodiscard]] (#170245)
2025-12-14 19:11:16 +02:00
Powered by Gitea Version: 1.23.1 Page: 25ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API