
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
13 lines
559 B
C
13 lines
559 B
C
// RUN: not %clang_cc1 %s -E --helium 2>&1 | \
|
|
// RUN: FileCheck %s
|
|
// RUN: not %clang_cc1 %s -E --hel[ 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
|
|
// RUN: not %clang %s -E -Xclang --hel[ 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=DID-YOU-MEAN
|
|
// RUN: not %clang_cc1 --version 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=DID-YOU-MEAN-VER
|
|
|
|
// CHECK: error: unknown argument: '--helium'
|
|
// DID-YOU-MEAN: error: unknown argument '--hel['; did you mean '--help'?
|
|
// DID-YOU-MEAN-VER: error: unknown argument '--version'; did you mean '-version'?
|