[clang] c01ea05 - [test] Driver/ftime-trace.cpp: work around -Wmsvc-not-found
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Sat May 13 00:22:11 PDT 2023
Author: Fangrui Song
Date: 2023-05-13T00:22:05-07:00
New Revision: c01ea0515f15064e4bcec601f9290854429b8666
URL: https://github.com/llvm/llvm-project/commit/c01ea0515f15064e4bcec601f9290854429b8666
DIFF: https://github.com/llvm/llvm-project/commit/c01ea0515f15064e4bcec601f9290854429b8666.diff
LOG: [test] Driver/ftime-trace.cpp: work around -Wmsvc-not-found
There may be one extra warning. Just make the check less strict.
```
clang: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]
clang: warning: argument unused during compilation: '-ftime-trace' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-ftime-trace=e' [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-ftime-trace-granularity=1' [-Wunused-command-line-argument]
```
Added:
Modified:
clang/test/Driver/ftime-trace.cpp
Removed:
################################################################################
diff --git a/clang/test/Driver/ftime-trace.cpp b/clang/test/Driver/ftime-trace.cpp
index fc7f5d680575..d1c9a0fee76f 100644
--- a/clang/test/Driver/ftime-trace.cpp
+++ b/clang/test/Driver/ftime-trace.cpp
@@ -55,10 +55,11 @@
// LINK3: -cc1{{.*}} "-ftime-trace=e{{/|\\\\}}b-{{[^.]*}}.json" "-ftime-trace-granularity=0"
// RUN: %clang -### -ftime-trace -ftime-trace=e -ftime-trace-granularity=1 -xassembler d/a.cpp 2>&1 | \
-// RUN: FileCheck %s --check-prefix=UNUSED --implicit-check-not=warning:
-// UNUSED: warning: argument unused during compilation: '-ftime-trace'
-// UNUSED: warning: argument unused during compilation: '-ftime-trace=e'
-// UNUSED: warning: argument unused during compilation: '-ftime-trace-granularity=1'
+// RUN: FileCheck %s --check-prefix=UNUSED
+// UNUSED: warning: argument unused during compilation: '-ftime-trace'
+// UNUSED-NEXT: warning: argument unused during compilation: '-ftime-trace=e'
+// UNUSED-NEXT: warning: argument unused during compilation: '-ftime-trace-granularity=1'
+// UNUSED-NOT: warning:
template <typename T>
struct Struct {
More information about the cfe-commits
mailing list