[all-commits] [llvm/llvm-project] f1d75d: [clang][Driver] Don't warn when -nostdinc and -nos...
Jonathon Penix via All-commits
all-commits at lists.llvm.org
Fri Jan 5 13:56:04 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f1d75d08adb9841dd9cebad63b76d4823ec2bdac
https://github.com/llvm/llvm-project/commit/f1d75d08adb9841dd9cebad63b76d4823ec2bdac
Author: Jonathon Penix <107437988+jonathonpenix at users.noreply.github.com>
Date: 2024-01-05 (Fri, 05 Jan 2024)
Changed paths:
M clang/lib/Driver/ToolChains/BareMetal.cpp
M clang/test/Driver/nostdincxx.cpp
Log Message:
-----------
[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.
More information about the All-commits
mailing list