summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-02 00:59:40 +0800
committerruki <[email protected]>2024-04-02 00:59:40 +0800
commit6e061abc8d3a1154001708e85ff50d76ff21f6f7 (patch)
tree8f647d112d6c6b91a282ce1cb39ebf8606f84796
parent53a18e3ebc0455166031a8b7aa958825b86a307c (diff)
format templates
-rw-r--r--xmake/templates/dlang/console/project/src/main.d3
-rw-r--r--xmake/templates/dlang/shared/project/src/main.d3
-rw-r--r--xmake/templates/dlang/static/project/src/main.d3
-rw-r--r--xmake/templates/objc++/bundle/project/src/test.mm3
-rw-r--r--xmake/templates/objc++/console/project/src/main.mm6
-rw-r--r--xmake/templates/objc++/framework/project/src/test.mm3
-rw-r--r--xmake/templates/objc/bundle/project/src/test.m3
-rw-r--r--xmake/templates/objc/console/project/src/main.m6
-rw-r--r--xmake/templates/objc/framework/project/src/test.m3
9 files changed, 11 insertions, 22 deletions
diff --git a/xmake/templates/dlang/console/project/src/main.d b/xmake/templates/dlang/console/project/src/main.d
index 524c4f94c..6bea6ec02 100644
--- a/xmake/templates/dlang/console/project/src/main.d
+++ b/xmake/templates/dlang/console/project/src/main.d
@@ -1,6 +1,5 @@
import std.stdio;
-void main()
-{
+void main() {
writeln("hello world!");
}
diff --git a/xmake/templates/dlang/shared/project/src/main.d b/xmake/templates/dlang/shared/project/src/main.d
index 3137de217..bfcf9cf56 100644
--- a/xmake/templates/dlang/shared/project/src/main.d
+++ b/xmake/templates/dlang/shared/project/src/main.d
@@ -1,8 +1,7 @@
import std.stdio;
import interfaces;
-void main()
-{
+void main() {
printf("add: %d\n", interfaces.add(1, 1));
printf("sub: %d\n", interfaces.sub(2, 1));
}
diff --git a/xmake/templates/dlang/static/project/src/main.d b/xmake/templates/dlang/static/project/src/main.d
index 3137de217..bfcf9cf56 100644
--- a/xmake/templates/dlang/static/project/src/main.d
+++ b/xmake/templates/dlang/static/project/src/main.d
@@ -1,8 +1,7 @@
import std.stdio;
import interfaces;
-void main()
-{
+void main() {
printf("add: %d\n", interfaces.add(1, 1));
printf("sub: %d\n", interfaces.sub(2, 1));
}
diff --git a/xmake/templates/objc++/bundle/project/src/test.mm b/xmake/templates/objc++/bundle/project/src/test.mm
index 84422f6a7..20e29bd0a 100644
--- a/xmake/templates/objc++/bundle/project/src/test.mm
+++ b/xmake/templates/objc++/bundle/project/src/test.mm
@@ -1,6 +1,5 @@
#include "test.h"
-int add(int a, int b)
-{
+int add(int a, int b) {
return a + b;
}
diff --git a/xmake/templates/objc++/console/project/src/main.mm b/xmake/templates/objc++/console/project/src/main.mm
index 61a3f5875..cbd1e8906 100644
--- a/xmake/templates/objc++/console/project/src/main.mm
+++ b/xmake/templates/objc++/console/project/src/main.mm
@@ -1,9 +1,7 @@
#import <Foundation/Foundation.h>
-int main(int argc, char** argv)
-{
- @autoreleasepool
- {
+int main(int argc, char** argv) {
+ @autoreleasepool {
NSLog(@"hello world!");
}
return 0;
diff --git a/xmake/templates/objc++/framework/project/src/test.mm b/xmake/templates/objc++/framework/project/src/test.mm
index 84422f6a7..20e29bd0a 100644
--- a/xmake/templates/objc++/framework/project/src/test.mm
+++ b/xmake/templates/objc++/framework/project/src/test.mm
@@ -1,6 +1,5 @@
#include "test.h"
-int add(int a, int b)
-{
+int add(int a, int b) {
return a + b;
}
diff --git a/xmake/templates/objc/bundle/project/src/test.m b/xmake/templates/objc/bundle/project/src/test.m
index 84422f6a7..20e29bd0a 100644
--- a/xmake/templates/objc/bundle/project/src/test.m
+++ b/xmake/templates/objc/bundle/project/src/test.m
@@ -1,6 +1,5 @@
#include "test.h"
-int add(int a, int b)
-{
+int add(int a, int b) {
return a + b;
}
diff --git a/xmake/templates/objc/console/project/src/main.m b/xmake/templates/objc/console/project/src/main.m
index 61a3f5875..cbd1e8906 100644
--- a/xmake/templates/objc/console/project/src/main.m
+++ b/xmake/templates/objc/console/project/src/main.m
@@ -1,9 +1,7 @@
#import <Foundation/Foundation.h>
-int main(int argc, char** argv)
-{
- @autoreleasepool
- {
+int main(int argc, char** argv) {
+ @autoreleasepool {
NSLog(@"hello world!");
}
return 0;
diff --git a/xmake/templates/objc/framework/project/src/test.m b/xmake/templates/objc/framework/project/src/test.m
index 84422f6a7..20e29bd0a 100644
--- a/xmake/templates/objc/framework/project/src/test.m
+++ b/xmake/templates/objc/framework/project/src/test.m
@@ -1,6 +1,5 @@
#include "test.h"
-int add(int a, int b)
-{
+int add(int a, int b) {
return a + b;
}