summaryrefslogtreecommitdiff
path: root/Tests/CMakeCommands/target_compile_features
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2016-05-16 10:34:04 -0400
committerBrad King <brad.king@kitware.com>2016-05-16 16:05:19 -0400
commitd9fd2f5402eeaa345691313658e02b51038f570b (patch)
treedca71b9a7e267f4c6300da3eb770415381726785 /Tests/CMakeCommands/target_compile_features
parent82df6deaafb36cbbfd450202bb20b320f637751a (diff)
downloadcmake-d9fd2f5402eeaa345691313658e02b51038f570b.tar.gz
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')
-rw-r--r--Tests/CMakeCommands/target_compile_features/dummy.cpp2
-rw-r--r--Tests/CMakeCommands/target_compile_features/lib_restrict.c2
-rw-r--r--Tests/CMakeCommands/target_compile_features/lib_restrict.h2
-rw-r--r--Tests/CMakeCommands/target_compile_features/lib_user.cpp2
-rw-r--r--Tests/CMakeCommands/target_compile_features/main.c2
-rw-r--r--Tests/CMakeCommands/target_compile_features/main.cpp2
-rw-r--r--Tests/CMakeCommands/target_compile_features/restrict_user.c2
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 341aaafa0a..e9ad2573b6 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 049c1b0084..2ceec971c5 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 eca22be10c..2e528b6d30 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 976068a0b7..541e528293 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 831c5eb275..76e98c4a11 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 fe29b04adc..6f5daee0bb 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 d47b847b43..76c956fbb8 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;