Skip to content

Commit e4d2427

Browse files
committed
[test] %clang_cc1 -analyze: remove redundant actions
1 parent d0be944 commit e4d2427

39 files changed

+87
-87
lines changed

clang/test/Analysis/addrspace-null.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown \
2-
// RUN: -analyze -analyzer-checker=core -DAMDGCN_TRIPLE \
3-
// RUN: -analyze -analyzer-checker=debug.ExprInspection \
4-
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
2+
// RUN: -analyzer-checker=core -DAMDGCN_TRIPLE \
3+
// RUN: -analyzer-checker=debug.ExprInspection \
4+
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
55
//
66
// RUN: %clang_analyze_cc1 -triple amdgcn-unknown-unknown \
7-
// RUN: -analyze -analyzer-checker=core -DDEFAULT_TRIPLE \
8-
// RUN: -analyze -analyzer-checker=debug.ExprInspection \
9-
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
7+
// RUN: -analyzer-checker=core -DDEFAULT_TRIPLE \
8+
// RUN: -analyzer-checker=debug.ExprInspection \
9+
// RUN: -Wno-implicit-int -Wno-int-conversion -verify %s
1010

1111
// From https://llvm.org/docs/AMDGPUUsage.html#address-spaces,
1212
// select address space 3 (local), since the pointer size is

clang/test/Analysis/ctu-cxxdefaultinitexpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c++17 \
44
// RUN: -emit-pch -o %t/ctudir/ctu-cxxdefaultinitexpr-import.cpp.ast %S/Inputs/ctu-cxxdefaultinitexpr-import.cpp
55
// RUN: cp %S/Inputs/ctu-cxxdefaultinitexpr-import.cpp.externalDefMap.ast-dump.txt %t/ctudir/externalDefMap.txt
6-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c++17 -analyze \
6+
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c++17 -analyze \
77
// RUN: -analyzer-checker=core \
88
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
99
// RUN: -analyzer-config ctu-dir=%t/ctudir \

clang/test/Analysis/ctu-lookup-name-with-space.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %clang_cc1 -emit-pch %/S/Inputs/ctu-lookup-name-with-space.cpp -o %t/importee.ast
88

99
// RUN: cd %t
10-
// RUN: %clang_cc1 -fsyntax-only -analyze \
10+
// RUN: %clang_cc1 -analyze \
1111
// RUN: -analyzer-checker=core \
1212
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
1313
// RUN: -analyzer-config ctu-dir=. \

clang/test/Analysis/ctu-main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: -emit-pch -o %t/ctudir2/ctu-other.c.ast %S/Inputs/ctu-other.c
55
// RUN: cp %S/Inputs/ctu-other.c.externalDefMap.ast-dump.txt %t/ctudir2/externalDefMap.txt
66

7-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c89 -analyze \
7+
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c89 -analyze \
88
// RUN: -analyzer-checker=core,debug.ExprInspection \
99
// RUN: -analyzer-config eagerly-assume=false \
1010
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
@@ -14,7 +14,7 @@
1414

1515
// Simulate the behavior of the previous CTU implementation by inlining all
1616
// functions during the first phase. This way, the second phase is a noop.
17-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -std=c89 -analyze \
17+
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -std=c89 -analyze \
1818
// RUN: -analyzer-checker=core,debug.ExprInspection \
1919
// RUN: -analyzer-config eagerly-assume=false \
2020
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \

clang/test/Analysis/ctu-on-demand-parsing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//
1212
// RUN: cd "%t" && %clang_extdef_map "%t/ctu-other.c" > externalDefMap.txt
1313
//
14-
// RUN: cd "%t" && %clang_cc1 -fsyntax-only -std=c89 -analyze \
14+
// RUN: cd "%t" && %clang_cc1 -std=c89 -analyze \
1515
// RUN: -analyzer-checker=core,debug.ExprInspection \
1616
// RUN: -analyzer-config experimental-enable-naive-ctu-analysis=true \
1717
// RUN: -analyzer-config ctu-dir=. \

clang/test/Analysis/handle_constructors_for_default_arguments.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -analyze \
1+
// RUN: %clang_cc1 -analyze \
22
// RUN: -analyzer-checker=core,debug.ExprInspection %s -verify
33

44
// These test cases demonstrate lack of Static Analyzer features.

clang/test/Analysis/handle_constructors_with_new_array.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -fsyntax-only -analyze \
1+
// RUN: %clang_cc1 -analyze \
22
// RUN: -analyzer-checker=core,debug.ExprInspection %s -verify
33

44
// These test cases demonstrate lack of Static Analyzer features.

clang/test/Analysis/html_diagnostics/relevant_lines/goto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ int goto_test(int input) {
88
}
99

1010
// RUN: rm -rf %t.output
11-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
11+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1212
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1313
// CHECK: var relevant_lines = {"1": {"1": 1, "2": 1, "3": 1, "4": 1, "6": 1, "7": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/macros_same_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ int f(int coin) {
1010
}
1111

1212
// RUN: rm -rf %t.output
13-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
13+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1414
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1515
// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}};

clang/test/Analysis/html_diagnostics/relevant_lines/multifile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ int f(int coin) {
99
}
1010

1111
// RUN: rm -rf %t.output
12-
// RUN: %clang_analyze_cc1 -analyze -analyzer-checker=core -analyzer-output html -o %t.output %s
12+
// RUN: %clang_analyze_cc1 -analyzer-checker=core -analyzer-output html -o %t.output %s
1313
// RUN: cat %t.output/* | FileCheck %s --match-full-lines
1414
// CHECK: var relevant_lines = {"1": {"3": 1, "4": 1, "5": 1, "6": 1}, "4": {"3": 1, "4": 1, "5": 1, "6": 1, "7": 1}};

0 commit comments

Comments
 (0)