diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 14:34:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 20:05:19 (GMT) |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Tests/CMakeCommands/target_link_libraries | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | CMake-d9fd2f5402eeaa345691313658e02b51038f570b.zip CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz CMake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.bz2 |
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.
Diffstat (limited to 'Tests/CMakeCommands/target_link_libraries')
13 files changed, 18 insertions, 14 deletions
diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.cpp b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.cpp index 41dc3ce..80b3c08 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.cpp +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.cpp @@ -4,7 +4,6 @@ OnlyPlainLib1::OnlyPlainLib1() : result(0) { - } int OnlyPlainLib1::GetResult() diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.h b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.h index c0373ce..2bc04ee 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.h +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib1.h @@ -1,9 +1,9 @@ struct #ifdef _WIN32 -__declspec(dllexport) + __declspec(dllexport) #endif -OnlyPlainLib1 + OnlyPlainLib1 { OnlyPlainLib1(); diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib2.h b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib2.h index 74b18a0..6f18d20 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib2.h +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib2.h @@ -4,4 +4,4 @@ #ifdef _WIN32 __declspec(dllexport) #endif -OnlyPlainLib1 onlyPlainLib2(); + OnlyPlainLib1 onlyPlainLib2(); diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib_user.cpp b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib_user.cpp index 0fb7b0a..02e9415 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib_user.cpp +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/onlyplainlib_user.cpp @@ -1,7 +1,7 @@ #include "onlyplainlib2.h" -int main(int argc, char **argv) +int main(int argc, char** argv) { return onlyPlainLib2().GetResult(); } diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.cpp b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.cpp index a253c46..d6b3986 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.cpp +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.cpp @@ -1,2 +1,5 @@ -int staticlib1() { return 0; } +int staticlib1() +{ + return 0; +} diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.h b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.h index 4bbf23f..7d58b10 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.h +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib1.h @@ -1,4 +1,4 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int staticlib1(); + int staticlib1(); diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.cpp b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.cpp index 4e38063..bd1a901 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.cpp +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.cpp @@ -1,2 +1,5 @@ -int staticlib2() { return 0; } +int staticlib2() +{ + return 0; +} diff --git a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.h b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.h index a4e07b6..bbfdaa3 100644 --- a/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.h +++ b/Tests/CMakeCommands/target_link_libraries/cmp0022/staticlib2.h @@ -1,4 +1,4 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int staticlib2(); + int staticlib2(); diff --git a/Tests/CMakeCommands/target_link_libraries/depC.h b/Tests/CMakeCommands/target_link_libraries/depC.h index 4d65c9e..01c9e06 100644 --- a/Tests/CMakeCommands/target_link_libraries/depC.h +++ b/Tests/CMakeCommands/target_link_libraries/depC.h @@ -8,5 +8,4 @@ struct DEPC_EXPORT DepC int foo(); DepA getA(); - }; diff --git a/Tests/CMakeCommands/target_link_libraries/newsignature1.cpp b/Tests/CMakeCommands/target_link_libraries/newsignature1.cpp index d1321a1..1caa516 100644 --- a/Tests/CMakeCommands/target_link_libraries/newsignature1.cpp +++ b/Tests/CMakeCommands/target_link_libraries/newsignature1.cpp @@ -5,7 +5,7 @@ #include "subdirlib.h" -int main(int, char **) +int main(int, char**) { DepA a; DepB b; diff --git a/Tests/CMakeCommands/target_link_libraries/targetA.cpp b/Tests/CMakeCommands/target_link_libraries/targetA.cpp index d1321a1..1caa516 100644 --- a/Tests/CMakeCommands/target_link_libraries/targetA.cpp +++ b/Tests/CMakeCommands/target_link_libraries/targetA.cpp @@ -5,7 +5,7 @@ #include "subdirlib.h" -int main(int, char **) +int main(int, char**) { DepA a; DepB b; diff --git a/Tests/CMakeCommands/target_link_libraries/targetB.cpp b/Tests/CMakeCommands/target_link_libraries/targetB.cpp index 0913a57..a08c79a 100644 --- a/Tests/CMakeCommands/target_link_libraries/targetB.cpp +++ b/Tests/CMakeCommands/target_link_libraries/targetB.cpp @@ -1,7 +1,7 @@ #include "depD.h" -int main(int, char **) +int main(int, char**) { DepD d; DepA a = d.getA(); diff --git a/Tests/CMakeCommands/target_link_libraries/targetC.cpp b/Tests/CMakeCommands/target_link_libraries/targetC.cpp index 3542660..7c5c9e4 100644 --- a/Tests/CMakeCommands/target_link_libraries/targetC.cpp +++ b/Tests/CMakeCommands/target_link_libraries/targetC.cpp @@ -8,7 +8,7 @@ #error Expected TEST_DEF definition #endif -int main(int, char **) +int main(int, char**) { DepG g; |