aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Refactor
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-02-12 07:23:43 -0500
committerAaron Ballman <aaron@aaronballman.com>2022-02-12 07:25:06 -0500
commit0dd49a5628bbe01cecf6516017da59ae44863ab3 (patch)
treed5e2772c3170d94f110217d59b1a5ac78c4d2420 /clang/test/Refactor
parent7ad94bd74bb5e2c984f541bc1921a9eda73ed973 (diff)
downloadllvm-0dd49a5628bbe01cecf6516017da59ae44863ab3.zip
llvm-0dd49a5628bbe01cecf6516017da59ae44863ab3.tar.gz
llvm-0dd49a5628bbe01cecf6516017da59ae44863ab3.tar.bz2
Use functions with prototypes when appropriate; NFC
A significant number of our tests in C accidentally use functions without prototypes. This patch converts the function signatures to have a prototype for the situations where the test is not specific to K&R C declarations. e.g., void func(); becomes void func(void); This is the eighth batch of tests being updated (there are a significant number of other tests left to be updated).
Diffstat (limited to 'clang/test/Refactor')
-rw-r--r--clang/test/Refactor/Extract/ExtractionSemicolonPolicy.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Refactor/Extract/ExtractionSemicolonPolicy.m b/clang/test/Refactor/Extract/ExtractionSemicolonPolicy.m
index 10e6a16..26f601a 100644
--- a/clang/test/Refactor/Extract/ExtractionSemicolonPolicy.m
+++ b/clang/test/Refactor/Extract/ExtractionSemicolonPolicy.m
@@ -16,7 +16,7 @@ void extractStatementNoSemiObjCFor(NSArray *array) {
// CHECK-NEXT: }{{$}}
// CHECK-NEXT: }{{[[:space:]].*}}
-void extractStatementNoSemiSync() {
+void extractStatementNoSemiSync(void) {
id lock;
/*range bstmt=->+2:4*/@synchronized(lock) {
int x = 0;
@@ -29,7 +29,7 @@ void extractStatementNoSemiSync() {
// CHECK-NEXT: }{{$}}
// CHECK-NEXT: }{{[[:space:]].*}}
-void extractStatementNoSemiAutorel() {
+void extractStatementNoSemiAutorel(void) {
/*range cstmt=->+2:4*/@autoreleasepool {
int x = 0;
}
@@ -41,7 +41,7 @@ void extractStatementNoSemiAutorel() {
// CHECK-NEXT: }{{$}}
// CHECK-NEXT: }{{[[:space:]].*}}
-void extractStatementNoSemiTryFinalllllly() {
+void extractStatementNoSemiTryFinalllllly(void) {
/*range dstmt=->+3:4*/@try {
int x = 0;
} @finally {