Details
Details
- Reviewers
ldionne mclow.lists zoecarver • Quuxplusone - Group Reviewers
Restricted Project - Commits
- rG6976255faffb: Add noreturn attribute to non-returning functions
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This LGTM. I think this matches __basic_string_common and __vector_base_common and friends.
Comment Actions
I did a grep for void __throw and verified that every other instance is attributed, except for:
- __throw_if_valueless in <variant>: this is good and intentional
- void __throw_runtime_error(const char* msg) in src/locale.cpp: what's the deal with this one? should you attribute it as well?
Comment Actions
__throw_runtime_error is attributed with noreturn https://github.com/llvm/llvm-project/blob/main/libcxx/src/locale.cpp#L132
Comment Actions
No, I meant this version: https://github.com/llvm/llvm-project/blob/main/libcxx/src/locale.cpp#L6270
Comment Actions
The declaration already has the attribute so we don't need it here. https://github.com/llvm/llvm-project/blob/main/libcxx/include/stdexcept#L217