llvm-project/clang/test/Driver/fdiagnostics-show-option.c
Fangrui Song d0d076fed9 [Driver] Flip the CC1 default of -fdiagnostics-show-option
The driver enables -fdiagnostics-show-option by default, so flip the CC1
default to reduce the lengths of common CC1 command lines.

This change also makes ParseDiagnosticArgs() consistently enable
-fdiagnostics-show-option by default.
2020-03-31 21:59:27 -07:00

8 lines
343 B
C

/// -fdiagnostics-show-option is the default
// RUN: %clang -### -c %s 2>&1 | FileCheck --check-prefix=ENABLED %s
// ENABLED-NOT: "-fno-diagnostics-show-option"
// RUN: %clang -### -c %s -fdiagnostics-show-option -fno-diagnostics-show-option 2>&1 | \
// RUN: FileCheck --check-prefix=DISABLED %s
// DISABLED: "-fno-diagnostics-show-option"