diff options
author | Jonathon Penix <107437988+jonathonpenix@users.noreply.github.com> | 2024-01-05 13:55:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-05 13:55:50 -0800 |
commit | f1d75d08adb9841dd9cebad63b76d4823ec2bdac (patch) | |
tree | baefe77adbd6141083c721e4d9b88275e76876ea /libcxx/src/algorithm.cpp | |
parent | 853b13342a131e06d61293ec6e840642054c6c85 (diff) | |
download | llvm-f1d75d08adb9841dd9cebad63b76d4823ec2bdac.zip llvm-f1d75d08adb9841dd9cebad63b76d4823ec2bdac.tar.gz llvm-f1d75d08adb9841dd9cebad63b76d4823ec2bdac.tar.bz2 |
[clang][Driver] Don't warn when -nostdinc and -nostdinc++ are both specified (#77130)
When -nostdinc and -nostdinc++ are both specified and the Baremetal
toolchain is used, an unused command line argument warning for
-nostdinc++ is produced. This doesn't seem particularly meaningful as
-nostdinc++ would have been claimed/used had the check in
AddClangCXXStdlibIncludeArgs not short-circuited. So, just claim all
arguments in this check.
I believe this is consistent with what was done for the GNU toolchain
(see 6fe7de90b9e4e466a5c2baadafd5f72d3203651d), so hopefully this is
appropriate here as well.
Diffstat (limited to 'libcxx/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions