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_compile_features | |
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_compile_features')
7 files changed, 7 insertions, 7 deletions
diff --git a/Tests/CMakeCommands/target_compile_features/dummy.cpp b/Tests/CMakeCommands/target_compile_features/dummy.cpp index 341aaaf..e9ad257 100644 --- a/Tests/CMakeCommands/target_compile_features/dummy.cpp +++ b/Tests/CMakeCommands/target_compile_features/dummy.cpp @@ -1,5 +1,5 @@ -int main(int, char **) +int main(int, char**) { return 0; } diff --git a/Tests/CMakeCommands/target_compile_features/lib_restrict.c b/Tests/CMakeCommands/target_compile_features/lib_restrict.c index 049c1b0..2ceec97 100644 --- a/Tests/CMakeCommands/target_compile_features/lib_restrict.c +++ b/Tests/CMakeCommands/target_compile_features/lib_restrict.c @@ -1,7 +1,7 @@ #include "lib_restrict.h" -int foo(int * restrict a, int * restrict b) +int foo(int* restrict a, int* restrict b) { (void)a; (void)b; diff --git a/Tests/CMakeCommands/target_compile_features/lib_restrict.h b/Tests/CMakeCommands/target_compile_features/lib_restrict.h index eca22be..2e528b6 100644 --- a/Tests/CMakeCommands/target_compile_features/lib_restrict.h +++ b/Tests/CMakeCommands/target_compile_features/lib_restrict.h @@ -2,6 +2,6 @@ #ifndef LIB_RESTRICT_H #define LIB_RESTRICT_H -int foo(int * restrict a, int * restrict b); +int foo(int* restrict a, int* restrict b); #endif diff --git a/Tests/CMakeCommands/target_compile_features/lib_user.cpp b/Tests/CMakeCommands/target_compile_features/lib_user.cpp index 976068a..541e528 100644 --- a/Tests/CMakeCommands/target_compile_features/lib_user.cpp +++ b/Tests/CMakeCommands/target_compile_features/lib_user.cpp @@ -1,7 +1,7 @@ #include "lib_auto_type.h" -int main(int argc, char **argv) +int main(int argc, char** argv) { return getAutoType(); } diff --git a/Tests/CMakeCommands/target_compile_features/main.c b/Tests/CMakeCommands/target_compile_features/main.c index 831c5eb2..76e98c4 100644 --- a/Tests/CMakeCommands/target_compile_features/main.c +++ b/Tests/CMakeCommands/target_compile_features/main.c @@ -1,5 +1,5 @@ -int foo(int * restrict a, int * restrict b) +int foo(int* restrict a, int* restrict b) { (void)a; (void)b; diff --git a/Tests/CMakeCommands/target_compile_features/main.cpp b/Tests/CMakeCommands/target_compile_features/main.cpp index fe29b04..6f5daee 100644 --- a/Tests/CMakeCommands/target_compile_features/main.cpp +++ b/Tests/CMakeCommands/target_compile_features/main.cpp @@ -1,5 +1,5 @@ -int main(int, char **) +int main(int, char**) { auto i = 0; return i; diff --git a/Tests/CMakeCommands/target_compile_features/restrict_user.c b/Tests/CMakeCommands/target_compile_features/restrict_user.c index d47b847..76c956f 100644 --- a/Tests/CMakeCommands/target_compile_features/restrict_user.c +++ b/Tests/CMakeCommands/target_compile_features/restrict_user.c @@ -1,7 +1,7 @@ #include "lib_restrict.h" -int bar(int * restrict a, int * restrict b) +int bar(int* restrict a, int* restrict b) { (void)a; (void)b; |