This allows for navigating to errors within the MSVC IDE by clicking
on the diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190378
91177308-0d34-0410-b5e6-
96231b3b80d8
if (Arg *A = Args.getLastArg(options::OPT_show_includes))
A->render(Args, CmdArgs);
+
+ if (!Args.hasArg(options::OPT_fdiagnostics_format_EQ)) {
+ CmdArgs.push_back("-fdiagnostics-format");
+ CmdArgs.push_back("msvc");
+ }
}
void ClangAs::ConstructJob(Compilation &C, const JobAction &JA,
// DEFAULT: -fapple-kext
// CL-NOT: -fapple-kext
-// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=ABI %s
-// ABI: "-cxx-abi" "microsoft"
+// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=COMPILE %s
+// COMPILE: "-cxx-abi" "microsoft"
+// COMPILE: "-fdiagnostics-format" "msvc"