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/IncludeDirectories | |
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/IncludeDirectories')
10 files changed, 21 insertions, 11 deletions
diff --git a/Tests/IncludeDirectories/CMP0021/main.cpp b/Tests/IncludeDirectories/CMP0021/main.cpp index f886c46..f638ed1 100644 --- a/Tests/IncludeDirectories/CMP0021/main.cpp +++ b/Tests/IncludeDirectories/CMP0021/main.cpp @@ -5,7 +5,7 @@ #error Expected CMP0021_DEFINE #endif -int main(int, char **) +int main(int, char**) { return 0; } diff --git a/Tests/IncludeDirectories/SystemIncludeDirectories/config_specific/config_iface.h b/Tests/IncludeDirectories/SystemIncludeDirectories/config_specific/config_iface.h index 05d3604..02e28b3 100644 --- a/Tests/IncludeDirectories/SystemIncludeDirectories/config_specific/config_iface.h +++ b/Tests/IncludeDirectories/SystemIncludeDirectories/config_specific/config_iface.h @@ -5,7 +5,7 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int configUnusedFunc() + int configUnusedFunc() { int unused; return 0; diff --git a/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib.cpp b/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib.cpp index f111bfa..5516b62 100644 --- a/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib.cpp +++ b/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib.cpp @@ -1,4 +1,7 @@ #include "systemlib.h" -int systemlib() { return 0; } +int systemlib() +{ + return 0; +} diff --git a/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib/systemlib.h b/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib/systemlib.h index c84de6a..1cb7eed 100644 --- a/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib/systemlib.h +++ b/Tests/IncludeDirectories/SystemIncludeDirectories/systemlib/systemlib.h @@ -5,12 +5,12 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int systemlib(); + int systemlib(); #ifdef _WIN32 __declspec(dllexport) #endif -int unusedFunc() + int unusedFunc() { int unused; return systemlib(); diff --git a/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.cpp b/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.cpp index f716b99..c569307 100644 --- a/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.cpp +++ b/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.cpp @@ -1,4 +1,7 @@ #include "upstream.h" -int upstream() { return systemlib(); } +int upstream() +{ + return systemlib(); +} diff --git a/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.h b/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.h index 3628568..a670c2a 100644 --- a/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.h +++ b/Tests/IncludeDirectories/SystemIncludeDirectories/upstream.h @@ -7,6 +7,6 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int upstream(); + int upstream(); #endif diff --git a/Tests/IncludeDirectories/TargetIncludeDirectories/empty.cpp b/Tests/IncludeDirectories/TargetIncludeDirectories/empty.cpp index 7279c5e..8d91e77 100644 --- a/Tests/IncludeDirectories/TargetIncludeDirectories/empty.cpp +++ b/Tests/IncludeDirectories/TargetIncludeDirectories/empty.cpp @@ -1,7 +1,7 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int empty(void) + int empty(void) { return 0; } diff --git a/Tests/IncludeDirectories/TargetIncludeDirectories/other.cpp b/Tests/IncludeDirectories/TargetIncludeDirectories/other.cpp index 6673471..9f961ac 100644 --- a/Tests/IncludeDirectories/TargetIncludeDirectories/other.cpp +++ b/Tests/IncludeDirectories/TargetIncludeDirectories/other.cpp @@ -1,6 +1,7 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int other() { + int other() +{ return 0; } diff --git a/Tests/IncludeDirectories/TargetIncludeDirectories/sing/ting/ting.h b/Tests/IncludeDirectories/TargetIncludeDirectories/sing/ting/ting.h index 4fe01dd..9b816b6 100644 --- a/Tests/IncludeDirectories/TargetIncludeDirectories/sing/ting/ting.h +++ b/Tests/IncludeDirectories/TargetIncludeDirectories/sing/ting/ting.h @@ -1 +1 @@ -//ting.h +// ting.h diff --git a/Tests/IncludeDirectories/empty.cpp b/Tests/IncludeDirectories/empty.cpp index 1787013..11ec041 100644 --- a/Tests/IncludeDirectories/empty.cpp +++ b/Tests/IncludeDirectories/empty.cpp @@ -1,4 +1,7 @@ #ifdef _WIN32 __declspec(dllexport) #endif -int empty() { return 0; } + int empty() +{ + return 0; +} |