[all-commits] [llvm/llvm-project] 1efcc5: [Clang][Driver] Warn about `-c/-S` with `-fsyntax-...
Dmitry Chestnykh via All-commits
all-commits at lists.llvm.org
Mon Jul 22 15:16:15 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1efcc532bab505db079bd3becffe32f742287c71
https://github.com/llvm/llvm-project/commit/1efcc532bab505db079bd3becffe32f742287c71
Author: Dmitry Chestnykh <dm.chestnykh at gmail.com>
Date: 2024-07-23 (Tue, 23 Jul 2024)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
A clang/test/Driver/warn-fsyntax-only.c
Log Message:
-----------
[Clang][Driver] Warn about `-c/-S` with `-fsyntax-only` (#98607)
Emit warning that `-S` and/or `-c` arguments are not used if
`-fsyntax-only` is also passed to clang
`addPGOAndCoverageFlags` is not the right place
to produce this warning
Now `-fsyntax-only -c/-S` combination handles like `-fsyntax-only -E` in
`BuildJobs()` driver function
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list