llvm-project
3a8894d7 - [libc++][numeric] Marked saturation artithmetic functions as `[[nodiscard]]` (#166898)

Commit
167 days ago
[libc++][numeric] Marked saturation artithmetic functions as `[[nodiscard]]` (#166898) ...according to Coding Guidelines: *`[[nodiscard]]` should be applied to functions where discarding the return value is most likely a correctness issue.* # References - https://libcxx.llvm.org/CodingGuidelines.html#apply-nodiscard-where-relevant - https://github.com/llvm/llvm-project/pull/166524#issuecomment-3495567876 Co-authored-by: Hristo Hristov <zingam@outlook.com>
Author
Parents
Loading