From d9fd2f5402eeaa345691313658e02b51038f570b Mon Sep 17 00:00:00 2001 From: Kitware Robot Date: Mon, 16 May 2016 10:34:04 -0400 Subject: Revise C++ coding style using clang-format Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. --- Tests/RunCMake/AutoExportDll/hello.cxx | 4 ++-- Tests/RunCMake/AutoExportDll/say.cxx | 7 +++---- Tests/RunCMake/BuildDepends/MakeInProjectOnly.c | 5 ++++- Tests/RunCMake/BuildDepends/main.c | 5 ++++- Tests/RunCMake/CMP0022/empty.cpp | 2 +- Tests/RunCMake/CMP0026/empty.cpp | 2 +- Tests/RunCMake/CMP0037/empty.cpp | 2 +- Tests/RunCMake/CMP0038/empty.cpp | 2 +- Tests/RunCMake/CMP0040/empty.cpp | 2 +- Tests/RunCMake/CMP0041/empty.cpp | 2 +- Tests/RunCMake/CMP0042/empty.cpp | 2 +- Tests/RunCMake/CMP0043/empty.cpp | 2 +- Tests/RunCMake/CMP0045/empty.cpp | 2 +- Tests/RunCMake/CMP0046/empty.cpp | 2 +- Tests/RunCMake/CMP0049/empty.cpp | 2 +- Tests/RunCMake/CMP0050/empty.cpp | 2 +- Tests/RunCMake/CMP0051/empty.cpp | 2 +- Tests/RunCMake/CMP0065/subproject/main.c | 2 +- Tests/RunCMake/COMPILE_LANGUAGE-genex/main.cpp | 2 +- Tests/RunCMake/CPackInstallProperties/test.cpp | 4 +++- Tests/RunCMake/ClangTidy/main.c | 5 ++++- Tests/RunCMake/ClangTidy/main.cxx | 5 ++++- Tests/RunCMake/CommandLine/cmake_depends/test.h | 4 +++- Tests/RunCMake/CompatibleInterface/main.cpp | 2 +- Tests/RunCMake/CompileFeatures/empty.c | 2 +- Tests/RunCMake/CompileFeatures/empty.cpp | 2 +- Tests/RunCMake/CompilerLauncher/main.c | 3 ++- Tests/RunCMake/CompilerLauncher/main.cxx | 5 ++++- .../CrosscompilingEmulator/simple_src_exiterror.cxx | 2 +- .../CrosscompilingEmulator/simple_src_exitsuccess.cxx | 2 +- Tests/RunCMake/ExportWithoutLanguage/header.h | 5 ++++- Tests/RunCMake/File_Generate/empty.c | 2 +- Tests/RunCMake/File_Generate/empty.cpp | 2 +- Tests/RunCMake/FindMatlab/matlab_wrapper1.cpp | 15 ++++++++------- Tests/RunCMake/Framework/foo.c | 5 ++++- Tests/RunCMake/IncludeWhatYouUse/main.c | 5 ++++- Tests/RunCMake/IncludeWhatYouUse/main.cxx | 5 ++++- Tests/RunCMake/IncompatibleQt/main.cpp | 2 +- Tests/RunCMake/Languages/empty.cpp | 2 +- Tests/RunCMake/ObjectLibrary/a.c | 5 ++++- Tests/RunCMake/ObsoleteQtMacros/empty.cpp | 2 +- Tests/RunCMake/PositionIndependentCode/main.cpp | 2 +- Tests/RunCMake/TargetPolicies/empty.cpp | 2 +- .../TargetPropertyGeneratorExpressions/empty.cpp | 2 +- Tests/RunCMake/TargetSources/empty_1.cpp | 2 +- Tests/RunCMake/TargetSources/empty_2.cpp | 2 +- Tests/RunCMake/TargetSources/empty_3.cpp | 2 +- Tests/RunCMake/TargetSources/empty_4.cpp | 2 +- Tests/RunCMake/VS10Project/foo.cpp | 4 +++- Tests/RunCMake/XcodeProject/foo.cpp | 4 +++- Tests/RunCMake/XcodeProject/main.cpp | 5 +++-- Tests/RunCMake/alias_targets/empty.cpp | 2 +- Tests/RunCMake/include/empty.cpp | 2 +- Tests/RunCMake/install/main.c | 5 ++++- Tests/RunCMake/pseudo_emulator.c | 17 ++++++++--------- Tests/RunCMake/pseudo_emulator_custom_command.c | 19 ++++++++----------- Tests/RunCMake/pseudo_tidy.c | 8 +++----- Tests/RunCMake/target_compile_features/empty.c | 2 +- Tests/RunCMake/target_compile_features/empty.cpp | 2 +- Tests/RunCMake/target_link_libraries/empty.cpp | 2 +- Tests/RunCMake/try_compile/other.c | 5 ++++- Tests/RunCMake/try_compile/src.c | 7 +++++-- Tests/RunCMake/try_run/src.c | 5 ++++- 63 files changed, 143 insertions(+), 97 deletions(-) (limited to 'Tests/RunCMake') diff --git a/Tests/RunCMake/AutoExportDll/hello.cxx b/Tests/RunCMake/AutoExportDll/hello.cxx index 4196948f6f..533fd3e72d 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 0d78d4be89..0178688b34 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 bcb8745bfb..0795aaae64 100644 --- a/Tests/RunCMake/BuildDepends/MakeInProjectOnly.c +++ b/Tests/RunCMake/BuildDepends/MakeInProjectOnly.c @@ -1,2 +1,5 @@ #include -int main() { return MakeInProjectOnly(); } +int main() +{ + return MakeInProjectOnly(); +} diff --git a/Tests/RunCMake/BuildDepends/main.c b/Tests/RunCMake/BuildDepends/main.c index 78f2de106c..8488f4e58f 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 182ea29c9f..bf7d5c92e8 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 bfbbddeb90..11ec041d1e 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 98725db500..2adf396dd3 100644 --- a/Tests/RunCMake/CMP0065/subproject/main.c +++ b/Tests/RunCMake/CMP0065/subproject/main.c @@ -1,6 +1,6 @@ #include -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 31a133726c..766b7751bf 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 237c8ce181..5047a34e39 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 78f2de106c..8488f4e58f 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 76e8197013..f8b643afbf 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 fd8738811e..c2db61cc82 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 65eddcf847..1c19e8dc31 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 03b2213bb9..8488f4e58f 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 76e8197013..f8b643afbf 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 e5e94f27ec..6ce7183867 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 630adc6bc2..a3dd891d7b 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 0c803ed036..5461f8af05 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 563eef01cd..f097d0aaac 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 bfbbddeb90..11ec041d1e 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 4149bb954e..ebf1b87234 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 #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 bf7759e11e..b85b60d874 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 78f2de106c..8488f4e58f 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 76e8197013..f8b643afbf 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 140a7c1a6d..410e13cb5e 100644 --- a/Tests/RunCMake/IncompatibleQt/main.cpp +++ b/Tests/RunCMake/IncompatibleQt/main.cpp @@ -1,7 +1,7 @@ #include -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 7279c5e0b9..8d91e77d31 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 af20d3ff65..16363033da 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 7279c5e0b9..8d91e77d31 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 31ba482802..e9ad2573b6 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 7279c5e0b9..8d91e77d31 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 2fb55eed6b..3695dc91e3 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 2fb55eed6b..3695dc91e3 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 1695921f2b..c94753f840 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 78f2de106c..8488f4e58f 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 9308f75aaf..15f64dc847 100644 --- a/Tests/RunCMake/pseudo_emulator.c +++ b/Tests/RunCMake/pseudo_emulator.c @@ -1,15 +1,14 @@ #include -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 17181c987f..760e83c873 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 766c99086f..c950d03220 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 bfbbddeb90..11ec041d1e 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 6c24f10b92..85c4ef810c 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 ab83eb6313..5e513825c7 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 78f2de106c..8488f4e58f 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; +} -- cgit v1.2.1