[all-commits] [llvm/llvm-project] 35b89b: [clang][driver] Disable non-functional --version o...
Emil Kieri via All-commits
all-commits at lists.llvm.org
Fri Mar 25 11:05:44 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 35b89bc24ca58d5b3a87578f69936afb26ef3b69
https://github.com/llvm/llvm-project/commit/35b89bc24ca58d5b3a87578f69936afb26ef3b69
Author: Emil Kieri <j.emil.kieri at gmail.com>
Date: 2022-03-25 (Fri, 25 Mar 2022)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/test/Frontend/unknown-arg.c
Log Message:
-----------
[clang][driver] Disable non-functional --version option for clang -cc1
This patch removes --version as a clang -cc1 option.
clang --version
and
clang --cc1 -version
remain valid. This behaviour is consistent with clang -cc1as.
Previously, clang -cc1 accepted both --version and -version, but
only -version was acted upon. The call
clang -cc1 --version
stalled without any message: --version was an accepted option but
triggered no action, and the driver waited for standard input.
Reviewed By: thakis
Differential Revision: https://reviews.llvm.org/D122344
More information about the All-commits
mailing list