File tree Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Expand file tree Collapse file tree 3 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,9 @@ New Compiler Flags
445
445
- The ``-Warray-compare-cxx26 `` warning has been added to warn about array comparison
446
446
starting from C++26, this warning is enabled as an error by default.
447
447
448
+ - clang-cl and clang-dxc now support ``-fdiagnostics-color=[auto|never|always] ``
449
+ in addition to ``-f[no-]color-diagnostics ``.
450
+
448
451
Deprecated Compiler Flags
449
452
-------------------------
450
453
Original file line number Diff line number Diff line change 664
664
// RUN: not %clang_cl /guard:foo -### -- %s 2>&1 | FileCheck -check-prefix=CFGUARDINVALID %s
665
665
// CFGUARDINVALID: invalid value 'foo' in '/guard:'
666
666
667
- // The test doesn't run in a PTY, so "auto" defaults to off.
668
- // RUN: %clang_cl -fdiagnostics-color=auto -### -- %s 2>&1 | FileCheck -check-prefix=NO_COLOR %s
669
-
670
- // RUN: %clang_cl -fdiagnostics-color -### -- %s 2>&1 | FileCheck -check-prefix=COLOR %s
671
- // RUN: %clang_cl -fdiagnostics-color=always -### -- %s 2>&1 | FileCheck -check-prefix=COLOR %s
672
- // RUN: %clang_cl -fdiagnostics-color=never -### -- %s 2>&1 | FileCheck -check-prefix=NO_COLOR %s
673
- // COLOR: "-fcolor-diagnostics"
674
- // NO_COLOR-NOT: "-fcolor-diagnostics"
675
-
676
667
// Accept "core" clang options.
677
668
// (/Zs is for syntax-only, -Werror makes it fail hard on unknown options)
678
669
// RUN: %clang_cl \
689
680
// RUN: -fcoverage-mapping \
690
681
// RUN: -fno-coverage-mapping \
691
682
// RUN: -fdiagnostics-color \
683
+ // RUN: -fdiagnostics-color=auto \
692
684
// RUN: -fno-diagnostics-color \
693
685
// RUN: -fdebug-compilation-dir . \
694
686
// RUN: -fdebug-compilation-dir=. \
Original file line number Diff line number Diff line change 1
- // The test doesn't run in a PTY, so "auto" defaults to off.
2
- // RUN: %clang_dxc -Tlib_6_7 -fdiagnostics-color=auto -### -- %s 2>&1 | FileCheck -check-prefix=NO_COLOR %s
1
+ // RUN: %clang_dxc \
2
+ // RUN: -fcolor-diagnostics \
3
+ // RUN: -fno-color-diagnostics \
4
+ // RUN: -fdiagnostics-color \
5
+ // RUN: -fno-diagnostics-color \
6
+ // RUN: -fdiagnostics-color=auto \
7
+ // RUN: -Tlib_6_7 -Vd -fdriver-only -- %s 2>&1 |count 0
3
8
4
- // RUN: %clang_dxc -Tlib_6_7 -fdiagnostics-color -### %s 2>&1 | FileCheck -check-prefix=COLOR %s
5
- // RUN: %clang_dxc -Tlib_6_7 -fdiagnostics-color=always -### %s 2>&1 | FileCheck -check-prefix=COLOR %s
6
- // RUN: %clang_dxc -Tlib_6_7 -fdiagnostics-color=never -### %s 2>&1 | FileCheck -check-prefix=NO_COLOR %s
7
- // COLOR: "-fcolor-diagnostics"
8
- // NO_COLOR-NOT: "-fcolor-diagnostics"
You can’t perform that action at this time.
0 commit comments