summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/AutoExportDll/hello.cxx4
-rw-r--r--Tests/RunCMake/AutoExportDll/say.cxx7
-rw-r--r--Tests/RunCMake/BuildDepends/MakeInProjectOnly.c5
-rw-r--r--Tests/RunCMake/BuildDepends/main.c5
-rw-r--r--Tests/RunCMake/CMP0022/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0026/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0037/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0038/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0040/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0041/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0042/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0043/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0045/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0046/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0049/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0050/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0051/empty.cpp2
-rw-r--r--Tests/RunCMake/CMP0065/subproject/main.c2
-rw-r--r--Tests/RunCMake/COMPILE_LANGUAGE-genex/main.cpp2
-rw-r--r--Tests/RunCMake/CPackInstallProperties/test.cpp4
-rw-r--r--Tests/RunCMake/ClangTidy/main.c5
-rw-r--r--Tests/RunCMake/ClangTidy/main.cxx5
-rw-r--r--Tests/RunCMake/CommandLine/cmake_depends/test.h4
-rw-r--r--Tests/RunCMake/CompatibleInterface/main.cpp2
-rw-r--r--Tests/RunCMake/CompileFeatures/empty.c2
-rw-r--r--Tests/RunCMake/CompileFeatures/empty.cpp2
-rw-r--r--Tests/RunCMake/CompilerLauncher/main.c3
-rw-r--r--Tests/RunCMake/CompilerLauncher/main.cxx5
-rw-r--r--Tests/RunCMake/CrosscompilingEmulator/simple_src_exiterror.cxx2
-rw-r--r--Tests/RunCMake/CrosscompilingEmulator/simple_src_exitsuccess.cxx2
-rw-r--r--Tests/RunCMake/ExportWithoutLanguage/header.h5
-rw-r--r--Tests/RunCMake/File_Generate/empty.c2
-rw-r--r--Tests/RunCMake/File_Generate/empty.cpp2
-rw-r--r--Tests/RunCMake/FindMatlab/matlab_wrapper1.cpp15
-rw-r--r--Tests/RunCMake/Framework/foo.c5
-rw-r--r--Tests/RunCMake/IncludeWhatYouUse/main.c5
-rw-r--r--Tests/RunCMake/IncludeWhatYouUse/main.cxx5
-rw-r--r--Tests/RunCMake/IncompatibleQt/main.cpp2
-rw-r--r--Tests/RunCMake/Languages/empty.cpp2
-rw-r--r--Tests/RunCMake/ObjectLibrary/a.c5
-rw-r--r--Tests/RunCMake/ObsoleteQtMacros/empty.cpp2
-rw-r--r--Tests/RunCMake/PositionIndependentCode/main.cpp2
-rw-r--r--Tests/RunCMake/TargetPolicies/empty.cpp2
-rw-r--r--Tests/RunCMake/TargetPropertyGeneratorExpressions/empty.cpp2
-rw-r--r--Tests/RunCMake/TargetSources/empty_1.cpp2
-rw-r--r--Tests/RunCMake/TargetSources/empty_2.cpp2
-rw-r--r--Tests/RunCMake/TargetSources/empty_3.cpp2
-rw-r--r--Tests/RunCMake/TargetSources/empty_4.cpp2
-rw-r--r--Tests/RunCMake/VS10Project/foo.cpp4
-rw-r--r--Tests/RunCMake/XcodeProject/foo.cpp4
-rw-r--r--Tests/RunCMake/XcodeProject/main.cpp5
-rw-r--r--Tests/RunCMake/alias_targets/empty.cpp2
-rw-r--r--Tests/RunCMake/include/empty.cpp2
-rw-r--r--Tests/RunCMake/install/main.c5
-rw-r--r--Tests/RunCMake/pseudo_emulator.c17
-rw-r--r--Tests/RunCMake/pseudo_emulator_custom_command.c19
-rw-r--r--Tests/RunCMake/pseudo_tidy.c8
-rw-r--r--Tests/RunCMake/target_compile_features/empty.c2
-rw-r--r--Tests/RunCMake/target_compile_features/empty.cpp2
-rw-r--r--Tests/RunCMake/target_link_libraries/empty.cpp2
-rw-r--r--Tests/RunCMake/try_compile/other.c5
-rw-r--r--Tests/RunCMake/try_compile/src.c7
-rw-r--r--Tests/RunCMake/try_run/src.c5
63 files changed, 143 insertions, 97 deletions
diff --git a/Tests/RunCMake/AutoExportDll/hello.cxx b/Tests/RunCMake/AutoExportDll/hello.cxx
index 4196948..533fd3e 100644
--- a/Tests/RunCMake/AutoExportDll/hello.cxx
+++ b/Tests/RunCMake/AutoExportDll/hello.cxx
@@ -9,5 +9,5 @@ void hello()
{
printf("hello");
}
-void Hello::operator delete[](void*) {};
-void Hello::operator delete(void*) {};
+void Hello::operator delete[](void*){};
+void Hello::operator delete(void*){};
diff --git a/Tests/RunCMake/AutoExportDll/say.cxx b/Tests/RunCMake/AutoExportDll/say.cxx
index 0d78d4b..0178688 100644
--- a/Tests/RunCMake/AutoExportDll/say.cxx
+++ b/Tests/RunCMake/AutoExportDll/say.cxx
@@ -6,12 +6,11 @@
#define WINAPI
#endif
-extern "C"
-{
+extern "C" {
// test __cdecl stuff
- int WINAPI foo();
+int WINAPI foo();
// test regular C
- int bar();
+int bar();
}
// test c++ functions
diff --git a/Tests/RunCMake/BuildDepends/MakeInProjectOnly.c b/Tests/RunCMake/BuildDepends/MakeInProjectOnly.c
index bcb8745..0795aaa 100644
--- a/Tests/RunCMake/BuildDepends/MakeInProjectOnly.c
+++ b/Tests/RunCMake/BuildDepends/MakeInProjectOnly.c
@@ -1,2 +1,5 @@
#include <MakeInProjectOnly.h>
-int main() { return MakeInProjectOnly(); }
+int main()
+{
+ return MakeInProjectOnly();
+}
diff --git a/Tests/RunCMake/BuildDepends/main.c b/Tests/RunCMake/BuildDepends/main.c
index 78f2de1..8488f4e 100644
--- a/Tests/RunCMake/BuildDepends/main.c
+++ b/Tests/RunCMake/BuildDepends/main.c
@@ -1 +1,4 @@
-int main(void) { return 0; }
+int main(void)
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/CMP0022/empty.cpp b/Tests/RunCMake/CMP0022/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0022/empty.cpp
+++ b/Tests/RunCMake/CMP0022/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0026/empty.cpp b/Tests/RunCMake/CMP0026/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0026/empty.cpp
+++ b/Tests/RunCMake/CMP0026/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0037/empty.cpp b/Tests/RunCMake/CMP0037/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0037/empty.cpp
+++ b/Tests/RunCMake/CMP0037/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0038/empty.cpp b/Tests/RunCMake/CMP0038/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0038/empty.cpp
+++ b/Tests/RunCMake/CMP0038/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0040/empty.cpp b/Tests/RunCMake/CMP0040/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0040/empty.cpp
+++ b/Tests/RunCMake/CMP0040/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0041/empty.cpp b/Tests/RunCMake/CMP0041/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0041/empty.cpp
+++ b/Tests/RunCMake/CMP0041/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0042/empty.cpp b/Tests/RunCMake/CMP0042/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0042/empty.cpp
+++ b/Tests/RunCMake/CMP0042/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0043/empty.cpp b/Tests/RunCMake/CMP0043/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0043/empty.cpp
+++ b/Tests/RunCMake/CMP0043/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0045/empty.cpp b/Tests/RunCMake/CMP0045/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0045/empty.cpp
+++ b/Tests/RunCMake/CMP0045/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0046/empty.cpp b/Tests/RunCMake/CMP0046/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0046/empty.cpp
+++ b/Tests/RunCMake/CMP0046/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0049/empty.cpp b/Tests/RunCMake/CMP0049/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0049/empty.cpp
+++ b/Tests/RunCMake/CMP0049/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0050/empty.cpp b/Tests/RunCMake/CMP0050/empty.cpp
index 182ea29..bf7d5c9 100644
--- a/Tests/RunCMake/CMP0050/empty.cpp
+++ b/Tests/RunCMake/CMP0050/empty.cpp
@@ -4,7 +4,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0051/empty.cpp b/Tests/RunCMake/CMP0051/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CMP0051/empty.cpp
+++ b/Tests/RunCMake/CMP0051/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CMP0065/subproject/main.c b/Tests/RunCMake/CMP0065/subproject/main.c
index 98725db..2adf396 100644
--- a/Tests/RunCMake/CMP0065/subproject/main.c
+++ b/Tests/RunCMake/CMP0065/subproject/main.c
@@ -1,6 +1,6 @@
#include <stdio.h>
-int main(int argc, char **argv)
+int main(int argc, char** argv)
{
printf("Hello World\n");
return 0;
diff --git a/Tests/RunCMake/COMPILE_LANGUAGE-genex/main.cpp b/Tests/RunCMake/COMPILE_LANGUAGE-genex/main.cpp
index 31a1337..766b775 100644
--- a/Tests/RunCMake/COMPILE_LANGUAGE-genex/main.cpp
+++ b/Tests/RunCMake/COMPILE_LANGUAGE-genex/main.cpp
@@ -1,5 +1,5 @@
int main()
{
- return 0;
+ return 0;
}
diff --git a/Tests/RunCMake/CPackInstallProperties/test.cpp b/Tests/RunCMake/CPackInstallProperties/test.cpp
index 237c8ce..5047a34 100644
--- a/Tests/RunCMake/CPackInstallProperties/test.cpp
+++ b/Tests/RunCMake/CPackInstallProperties/test.cpp
@@ -1 +1,3 @@
-int main() {}
+int main()
+{
+}
diff --git a/Tests/RunCMake/ClangTidy/main.c b/Tests/RunCMake/ClangTidy/main.c
index 78f2de1..8488f4e 100644
--- a/Tests/RunCMake/ClangTidy/main.c
+++ b/Tests/RunCMake/ClangTidy/main.c
@@ -1 +1,4 @@
-int main(void) { return 0; }
+int main(void)
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/ClangTidy/main.cxx b/Tests/RunCMake/ClangTidy/main.cxx
index 76e8197..f8b643a 100644
--- a/Tests/RunCMake/ClangTidy/main.cxx
+++ b/Tests/RunCMake/ClangTidy/main.cxx
@@ -1 +1,4 @@
-int main() { return 0; }
+int main()
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/CommandLine/cmake_depends/test.h b/Tests/RunCMake/CommandLine/cmake_depends/test.h
index fd87388..c2db61c 100644
--- a/Tests/RunCMake/CommandLine/cmake_depends/test.h
+++ b/Tests/RunCMake/CommandLine/cmake_depends/test.h
@@ -1 +1,3 @@
-void test(void) {}
+void test(void)
+{
+}
diff --git a/Tests/RunCMake/CompatibleInterface/main.cpp b/Tests/RunCMake/CompatibleInterface/main.cpp
index 65eddcf..1c19e8d 100644
--- a/Tests/RunCMake/CompatibleInterface/main.cpp
+++ b/Tests/RunCMake/CompatibleInterface/main.cpp
@@ -1,5 +1,5 @@
-int main(int argc, char **argv)
+int main(int argc, char** argv)
{
return 0;
}
diff --git a/Tests/RunCMake/CompileFeatures/empty.c b/Tests/RunCMake/CompileFeatures/empty.c
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CompileFeatures/empty.c
+++ b/Tests/RunCMake/CompileFeatures/empty.c
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CompileFeatures/empty.cpp b/Tests/RunCMake/CompileFeatures/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/CompileFeatures/empty.cpp
+++ b/Tests/RunCMake/CompileFeatures/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/CompilerLauncher/main.c b/Tests/RunCMake/CompilerLauncher/main.c
index 03b2213..8488f4e 100644
--- a/Tests/RunCMake/CompilerLauncher/main.c
+++ b/Tests/RunCMake/CompilerLauncher/main.c
@@ -1,3 +1,4 @@
-int main(void) {
+int main(void)
+{
return 0;
}
diff --git a/Tests/RunCMake/CompilerLauncher/main.cxx b/Tests/RunCMake/CompilerLauncher/main.cxx
index 76e8197..f8b643a 100644
--- a/Tests/RunCMake/CompilerLauncher/main.cxx
+++ b/Tests/RunCMake/CompilerLauncher/main.cxx
@@ -1 +1,4 @@
-int main() { return 0; }
+int main()
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/CrosscompilingEmulator/simple_src_exiterror.cxx b/Tests/RunCMake/CrosscompilingEmulator/simple_src_exiterror.cxx
index e5e94f2..6ce7183 100644
--- a/Tests/RunCMake/CrosscompilingEmulator/simple_src_exiterror.cxx
+++ b/Tests/RunCMake/CrosscompilingEmulator/simple_src_exiterror.cxx
@@ -1,4 +1,4 @@
-int main(int, char **)
+int main(int, char**)
{
return 13;
}
diff --git a/Tests/RunCMake/CrosscompilingEmulator/simple_src_exitsuccess.cxx b/Tests/RunCMake/CrosscompilingEmulator/simple_src_exitsuccess.cxx
index 630adc6..a3dd891 100644
--- a/Tests/RunCMake/CrosscompilingEmulator/simple_src_exitsuccess.cxx
+++ b/Tests/RunCMake/CrosscompilingEmulator/simple_src_exitsuccess.cxx
@@ -1,4 +1,4 @@
-int main(int, char **)
+int main(int, char**)
{
return 0;
}
diff --git a/Tests/RunCMake/ExportWithoutLanguage/header.h b/Tests/RunCMake/ExportWithoutLanguage/header.h
index 0c803ed..5461f8a 100644
--- a/Tests/RunCMake/ExportWithoutLanguage/header.h
+++ b/Tests/RunCMake/ExportWithoutLanguage/header.h
@@ -1,2 +1,5 @@
-enum some_compilers { need_more_than_nothing };
+enum some_compilers
+{
+ need_more_than_nothing
+};
diff --git a/Tests/RunCMake/File_Generate/empty.c b/Tests/RunCMake/File_Generate/empty.c
index 563eef0..f097d0a 100644
--- a/Tests/RunCMake/File_Generate/empty.c
+++ b/Tests/RunCMake/File_Generate/empty.c
@@ -2,7 +2,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty_c()
+ int empty_c()
{
return 0;
}
diff --git a/Tests/RunCMake/File_Generate/empty.cpp b/Tests/RunCMake/File_Generate/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/File_Generate/empty.cpp
+++ b/Tests/RunCMake/File_Generate/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/FindMatlab/matlab_wrapper1.cpp b/Tests/RunCMake/FindMatlab/matlab_wrapper1.cpp
index 4149bb9..ebf1b87 100644
--- a/Tests/RunCMake/FindMatlab/matlab_wrapper1.cpp
+++ b/Tests/RunCMake/FindMatlab/matlab_wrapper1.cpp
@@ -1,24 +1,25 @@
// simple workaround to some compiler specific problems
-// see http://stackoverflow.com/questions/22367516/mex-compile-error-unknown-type-name-char16-t/23281916#23281916
+// see
+// http://stackoverflow.com/questions/22367516/mex-compile-error-unknown-type-name-char16-t/23281916#23281916
#include <algorithm>
#include "mex.h"
-// this test should return a matrix of 10 x 10 and should check some of the arguments
+// this test should return a matrix of 10 x 10 and should check some of the
+// arguments
-void mexFunction(const int nlhs, mxArray *plhs[], const int nrhs, const mxArray *prhs[])
+void mexFunction(const int nlhs, mxArray* plhs[], const int nrhs,
+ const mxArray* prhs[])
{
- if(nrhs != 1)
- {
+ if (nrhs != 1) {
mexErrMsgTxt("Incorrect arguments");
}
size_t dim1 = mxGetM(prhs[0]);
size_t dim2 = mxGetN(prhs[0]);
- if(dim1 == 1 || dim2 == 1)
- {
+ if (dim1 == 1 || dim2 == 1) {
mexErrMsgIdAndTxt("cmake_matlab:configuration", "Incorrect arguments");
}
diff --git a/Tests/RunCMake/Framework/foo.c b/Tests/RunCMake/Framework/foo.c
index bf7759e..b85b60d 100644
--- a/Tests/RunCMake/Framework/foo.c
+++ b/Tests/RunCMake/Framework/foo.c
@@ -1 +1,4 @@
-int foo() { return 42; }
+int foo()
+{
+ return 42;
+}
diff --git a/Tests/RunCMake/IncludeWhatYouUse/main.c b/Tests/RunCMake/IncludeWhatYouUse/main.c
index 78f2de1..8488f4e 100644
--- a/Tests/RunCMake/IncludeWhatYouUse/main.c
+++ b/Tests/RunCMake/IncludeWhatYouUse/main.c
@@ -1 +1,4 @@
-int main(void) { return 0; }
+int main(void)
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/IncludeWhatYouUse/main.cxx b/Tests/RunCMake/IncludeWhatYouUse/main.cxx
index 76e8197..f8b643a 100644
--- a/Tests/RunCMake/IncludeWhatYouUse/main.cxx
+++ b/Tests/RunCMake/IncludeWhatYouUse/main.cxx
@@ -1 +1,4 @@
-int main() { return 0; }
+int main()
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/IncompatibleQt/main.cpp b/Tests/RunCMake/IncompatibleQt/main.cpp
index 140a7c1..410e13c 100644
--- a/Tests/RunCMake/IncompatibleQt/main.cpp
+++ b/Tests/RunCMake/IncompatibleQt/main.cpp
@@ -1,7 +1,7 @@
#include <QCoreApplication>
-int main(int argc, char **argv)
+int main(int argc, char** argv)
{
QCoreApplication app(argc, argv);
return app.exec();
diff --git a/Tests/RunCMake/Languages/empty.cpp b/Tests/RunCMake/Languages/empty.cpp
index 7279c5e..8d91e77 100644
--- a/Tests/RunCMake/Languages/empty.cpp
+++ b/Tests/RunCMake/Languages/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty(void)
+ int empty(void)
{
return 0;
}
diff --git a/Tests/RunCMake/ObjectLibrary/a.c b/Tests/RunCMake/ObjectLibrary/a.c
index af20d3f..1636303 100644
--- a/Tests/RunCMake/ObjectLibrary/a.c
+++ b/Tests/RunCMake/ObjectLibrary/a.c
@@ -1 +1,4 @@
-int a(void) { return 0; }
+int a(void)
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/ObsoleteQtMacros/empty.cpp b/Tests/RunCMake/ObsoleteQtMacros/empty.cpp
index 7279c5e..8d91e77 100644
--- a/Tests/RunCMake/ObsoleteQtMacros/empty.cpp
+++ b/Tests/RunCMake/ObsoleteQtMacros/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty(void)
+ int empty(void)
{
return 0;
}
diff --git a/Tests/RunCMake/PositionIndependentCode/main.cpp b/Tests/RunCMake/PositionIndependentCode/main.cpp
index 31ba482..e9ad257 100644
--- a/Tests/RunCMake/PositionIndependentCode/main.cpp
+++ b/Tests/RunCMake/PositionIndependentCode/main.cpp
@@ -1,5 +1,5 @@
-int main(int,char**)
+int main(int, char**)
{
return 0;
}
diff --git a/Tests/RunCMake/TargetPolicies/empty.cpp b/Tests/RunCMake/TargetPolicies/empty.cpp
index 7279c5e..8d91e77 100644
--- a/Tests/RunCMake/TargetPolicies/empty.cpp
+++ b/Tests/RunCMake/TargetPolicies/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty(void)
+ int empty(void)
{
return 0;
}
diff --git a/Tests/RunCMake/TargetPropertyGeneratorExpressions/empty.cpp b/Tests/RunCMake/TargetPropertyGeneratorExpressions/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/TargetPropertyGeneratorExpressions/empty.cpp
+++ b/Tests/RunCMake/TargetPropertyGeneratorExpressions/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/TargetSources/empty_1.cpp b/Tests/RunCMake/TargetSources/empty_1.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/TargetSources/empty_1.cpp
+++ b/Tests/RunCMake/TargetSources/empty_1.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/TargetSources/empty_2.cpp b/Tests/RunCMake/TargetSources/empty_2.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/TargetSources/empty_2.cpp
+++ b/Tests/RunCMake/TargetSources/empty_2.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/TargetSources/empty_3.cpp b/Tests/RunCMake/TargetSources/empty_3.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/TargetSources/empty_3.cpp
+++ b/Tests/RunCMake/TargetSources/empty_3.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/TargetSources/empty_4.cpp b/Tests/RunCMake/TargetSources/empty_4.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/TargetSources/empty_4.cpp
+++ b/Tests/RunCMake/TargetSources/empty_4.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/VS10Project/foo.cpp b/Tests/RunCMake/VS10Project/foo.cpp
index 2fb55ee..3695dc9 100644
--- a/Tests/RunCMake/VS10Project/foo.cpp
+++ b/Tests/RunCMake/VS10Project/foo.cpp
@@ -1 +1,3 @@
-void foo() { }
+void foo()
+{
+}
diff --git a/Tests/RunCMake/XcodeProject/foo.cpp b/Tests/RunCMake/XcodeProject/foo.cpp
index 2fb55ee..3695dc9 100644
--- a/Tests/RunCMake/XcodeProject/foo.cpp
+++ b/Tests/RunCMake/XcodeProject/foo.cpp
@@ -1 +1,3 @@
-void foo() { }
+void foo()
+{
+}
diff --git a/Tests/RunCMake/XcodeProject/main.cpp b/Tests/RunCMake/XcodeProject/main.cpp
index 1695921..c94753f 100644
--- a/Tests/RunCMake/XcodeProject/main.cpp
+++ b/Tests/RunCMake/XcodeProject/main.cpp
@@ -1,3 +1,4 @@
-int main(int argc, const char * argv[]) {
- return 0;
+int main(int argc, const char* argv[])
+{
+ return 0;
}
diff --git a/Tests/RunCMake/alias_targets/empty.cpp b/Tests/RunCMake/alias_targets/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/alias_targets/empty.cpp
+++ b/Tests/RunCMake/alias_targets/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/include/empty.cpp b/Tests/RunCMake/include/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/include/empty.cpp
+++ b/Tests/RunCMake/include/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/install/main.c b/Tests/RunCMake/install/main.c
index 78f2de1..8488f4e 100644
--- a/Tests/RunCMake/install/main.c
+++ b/Tests/RunCMake/install/main.c
@@ -1 +1,4 @@
-int main(void) { return 0; }
+int main(void)
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/pseudo_emulator.c b/Tests/RunCMake/pseudo_emulator.c
index 9308f75..15f64dc 100644
--- a/Tests/RunCMake/pseudo_emulator.c
+++ b/Tests/RunCMake/pseudo_emulator.c
@@ -1,15 +1,14 @@
#include <stdio.h>
-int main(int argc, char * argv[] )
+int main(int argc, char* argv[])
{
- int ii;
+ int ii;
- printf("Command:");
- for(ii = 1; ii < argc; ++ii)
- {
- printf(" \"%s\"", argv[ii]);
- }
- printf("\n");
+ printf("Command:");
+ for (ii = 1; ii < argc; ++ii) {
+ printf(" \"%s\"", argv[ii]);
+ }
+ printf("\n");
- return 42;
+ return 42;
}
diff --git a/Tests/RunCMake/pseudo_emulator_custom_command.c b/Tests/RunCMake/pseudo_emulator_custom_command.c
index 17181c9..760e83c 100644
--- a/Tests/RunCMake/pseudo_emulator_custom_command.c
+++ b/Tests/RunCMake/pseudo_emulator_custom_command.c
@@ -16,19 +16,16 @@ int main(int argc, const char* argv[])
const char* substring_failure = "generated_exe_emulator_unexpected";
const char* substring_success = "generated_exe_emulator_expected";
const char* str = argv[1];
- if (argc < 2)
- {
+ if (argc < 2) {
return EXIT_FAILURE;
- }
- if (strstr(str, substring_success) != 0)
- {
+ }
+ if (strstr(str, substring_success) != 0) {
return EXIT_SUCCESS;
- }
- if (strstr(str, substring_failure) != 0)
- {
+ }
+ if (strstr(str, substring_failure) != 0) {
return EXIT_FAILURE;
- }
- fprintf(stderr, "Failed to find string '%s' in '%s'\n",
- substring_success, str);
+ }
+ fprintf(stderr, "Failed to find string '%s' in '%s'\n", substring_success,
+ str);
return EXIT_FAILURE;
}
diff --git a/Tests/RunCMake/pseudo_tidy.c b/Tests/RunCMake/pseudo_tidy.c
index 766c990..c950d03 100644
--- a/Tests/RunCMake/pseudo_tidy.c
+++ b/Tests/RunCMake/pseudo_tidy.c
@@ -3,14 +3,12 @@
int main(int argc, char* argv[])
{
int i;
- for (i = 1; i < argc; ++i)
- {
- if (argv[i][0] != '-')
- {
+ for (i = 1; i < argc; ++i) {
+ if (argv[i][0] != '-') {
fprintf(stdout, "%s:0:0: warning: message [checker]\n", argv[i]);
break;
- }
}
+ }
fprintf(stderr, "1 warning generated.\n");
return 0;
}
diff --git a/Tests/RunCMake/target_compile_features/empty.c b/Tests/RunCMake/target_compile_features/empty.c
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/target_compile_features/empty.c
+++ b/Tests/RunCMake/target_compile_features/empty.c
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/target_compile_features/empty.cpp b/Tests/RunCMake/target_compile_features/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/target_compile_features/empty.cpp
+++ b/Tests/RunCMake/target_compile_features/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/target_link_libraries/empty.cpp b/Tests/RunCMake/target_link_libraries/empty.cpp
index bfbbdde..11ec041 100644
--- a/Tests/RunCMake/target_link_libraries/empty.cpp
+++ b/Tests/RunCMake/target_link_libraries/empty.cpp
@@ -1,7 +1,7 @@
#ifdef _WIN32
__declspec(dllexport)
#endif
-int empty()
+ int empty()
{
return 0;
}
diff --git a/Tests/RunCMake/try_compile/other.c b/Tests/RunCMake/try_compile/other.c
index 6c24f10..85c4ef8 100644
--- a/Tests/RunCMake/try_compile/other.c
+++ b/Tests/RunCMake/try_compile/other.c
@@ -1 +1,4 @@
-int other(void) { return 0; }
+int other(void)
+{
+ return 0;
+}
diff --git a/Tests/RunCMake/try_compile/src.c b/Tests/RunCMake/try_compile/src.c
index ab83eb6..5e51382 100644
--- a/Tests/RunCMake/try_compile/src.c
+++ b/Tests/RunCMake/try_compile/src.c
@@ -1,4 +1,7 @@
-int main(void) { return 0; }
+int main(void)
+{
+ return 0;
+}
#ifdef PP_ERROR
-# error PP_ERROR is defined
+#error PP_ERROR is defined
#endif
diff --git a/Tests/RunCMake/try_run/src.c b/Tests/RunCMake/try_run/src.c
index 78f2de1..8488f4e 100644
--- a/Tests/RunCMake/try_run/src.c
+++ b/Tests/RunCMake/try_run/src.c
@@ -1 +1,4 @@
-int main(void) { return 0; }
+int main(void)
+{
+ return 0;
+}