diff options
| -rw-r--r-- | mesonbuild/templates/cpptemplates.py | 4 | ||||
| -rw-r--r-- | mesonbuild/templates/ctemplates.py | 4 | ||||
| -rw-r--r-- | mesonbuild/templates/cudatemplates.py | 4 | ||||
| -rw-r--r-- | mesonbuild/templates/javatemplates.py | 4 | ||||
| -rw-r--r-- | mesonbuild/templates/objcpptemplates.py | 4 | ||||
| -rw-r--r-- | mesonbuild/templates/objctemplates.py | 4 |
6 files changed, 12 insertions, 12 deletions
diff --git a/mesonbuild/templates/cpptemplates.py b/mesonbuild/templates/cpptemplates.py index eead3cf05..1bfa2ae4f 100644 --- a/mesonbuild/templates/cpptemplates.py +++ b/mesonbuild/templates/cpptemplates.py @@ -15,7 +15,7 @@ hello_cpp_template = '''#include <iostream> #define PROJECT_NAME "{project_name}" int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ std::cout << argv[0] << "takes no arguments.\\n"; return 1; }} @@ -97,7 +97,7 @@ lib_cpp_test_template = '''#include <{header_file}> #include <iostream> int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ std::cout << argv[0] << " takes no arguments.\\n"; return 1; }} diff --git a/mesonbuild/templates/ctemplates.py b/mesonbuild/templates/ctemplates.py index 7cf04f6aa..559cef91b 100644 --- a/mesonbuild/templates/ctemplates.py +++ b/mesonbuild/templates/ctemplates.py @@ -48,7 +48,7 @@ lib_c_test_template = '''#include <{header_file}> #include <stdio.h> int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ printf("%s takes no arguments.\\n", argv[0]); return 1; }} @@ -113,7 +113,7 @@ hello_c_template = '''#include <stdio.h> #define PROJECT_NAME "{project_name}" int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ printf("%s takes no arguments.\\n", argv[0]); return 1; }} diff --git a/mesonbuild/templates/cudatemplates.py b/mesonbuild/templates/cudatemplates.py index 416ba376a..252f44a27 100644 --- a/mesonbuild/templates/cudatemplates.py +++ b/mesonbuild/templates/cudatemplates.py @@ -16,7 +16,7 @@ hello_cuda_template = '''#include <iostream> #define PROJECT_NAME "{project_name}" int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ std::cout << argv[0] << " takes no arguments.\\n"; return 1; }} @@ -98,7 +98,7 @@ lib_cuda_test_template = '''#include <{header_file}> #include <iostream> int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ std::cout << argv[0] << " takes no arguments.\\n"; return 1; }} diff --git a/mesonbuild/templates/javatemplates.py b/mesonbuild/templates/javatemplates.py index a2b3ec4dc..c30c7f7b5 100644 --- a/mesonbuild/templates/javatemplates.py +++ b/mesonbuild/templates/javatemplates.py @@ -13,7 +13,7 @@ public class {class_name} {{ final static String PROJECT_NAME = "{project_name}"; public static void main (String args[]) {{ - if(args.length != 0) {{ + if (args.length != 0) {{ System.out.println(args + " takes no arguments."); System.exit(0); }} @@ -62,7 +62,7 @@ lib_java_test_template = ''' public class {class_test} {{ public static void main (String args[]) {{ - if(args.length != 0) {{ + if (args.length != 0) {{ System.out.println(args + " takes no arguments."); System.exit(1); }} diff --git a/mesonbuild/templates/objcpptemplates.py b/mesonbuild/templates/objcpptemplates.py index 45e70c6c9..1fdfa06a4 100644 --- a/mesonbuild/templates/objcpptemplates.py +++ b/mesonbuild/templates/objcpptemplates.py @@ -48,7 +48,7 @@ lib_objcpp_test_template = '''#import <{header_file}> #import <iostream> int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ std::cout << argv[0] << " takes no arguments." << std::endl; return 1; }} @@ -113,7 +113,7 @@ hello_objcpp_template = '''#import <iostream> #define PROJECT_NAME "{project_name}" int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ std::cout << argv[0] << " takes no arguments." << std::endl; return 1; }} diff --git a/mesonbuild/templates/objctemplates.py b/mesonbuild/templates/objctemplates.py index 0c7891fdb..5603bae3b 100644 --- a/mesonbuild/templates/objctemplates.py +++ b/mesonbuild/templates/objctemplates.py @@ -48,7 +48,7 @@ lib_objc_test_template = '''#import <{header_file}> #import <stdio.h> int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ printf("%s takes no arguments.\\n", argv[0]); return 1; }} @@ -112,7 +112,7 @@ hello_objc_template = '''#import <stdio.h> #define PROJECT_NAME "{project_name}" int main(int argc, char **argv) {{ - if(argc != 1) {{ + if (argc != 1) {{ printf("%s takes no arguments.\\n", argv[0]); return 1; }} |
