diff options
author | Nikolas Klauser <nikolasklauser@berlin.de> | 2022-12-25 20:13:39 +0100 |
---|---|---|
committer | Nikolas Klauser <nikolasklauser@berlin.de> | 2023-01-12 18:34:49 +0100 |
commit | 633927db844e47c87dd93198e2c2763dd10f668f (patch) | |
tree | f3a1c352e33b258b2b186c8c39849e73f0d159f3 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | d808ad822a5b49594d5a4955d4d9b3a59a50d360 (diff) | |
download | llvm-633927db844e47c87dd93198e2c2763dd10f668f.zip llvm-633927db844e47c87dd93198e2c2763dd10f668f.tar.gz llvm-633927db844e47c87dd93198e2c2763dd10f668f.tar.bz2 |
[libc++] Add [[nodiscard]] extensions in <math.h>
There are quite a few functions marked `[[gnu::const]]` inside the compiler. This patch adds `[[nodiscard]]` to libc++-provided overloads of these functions to match the diagnostics produced.
Reviewed By: ldionne, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D140855
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions