summaryrefslogtreecommitdiffstats
path: root/Tests/Visibility
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2016-05-16 14:34:04 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-16 20:05:19 (GMT)
commitd9fd2f5402eeaa345691313658e02b51038f570b (patch)
treedca71b9a7e267f4c6300da3eb770415381726785 /Tests/Visibility
parent82df6deaafb36cbbfd450202bb20b320f637751a (diff)
downloadCMake-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/Visibility')
-rw-r--r--Tests/Visibility/bar.c4
-rw-r--r--Tests/Visibility/foo.cpp6
-rw-r--r--Tests/Visibility/hidden.c11
-rw-r--r--Tests/Visibility/shared.c5
4 files changed, 18 insertions, 8 deletions
diff --git a/Tests/Visibility/bar.c b/Tests/Visibility/bar.c
index e425999..b72a1a5 100644
--- a/Tests/Visibility/bar.c
+++ b/Tests/Visibility/bar.c
@@ -1 +1,3 @@
-void bar() {}
+void bar()
+{
+}
diff --git a/Tests/Visibility/foo.cpp b/Tests/Visibility/foo.cpp
index 2b66b69..8373fd2 100644
--- a/Tests/Visibility/foo.cpp
+++ b/Tests/Visibility/foo.cpp
@@ -1,11 +1,11 @@
class Foo
{
public:
- void bar() {}
+ void bar() {}
};
void baz()
{
- Foo foo;
- foo.bar();
+ Foo foo;
+ foo.bar();
}
diff --git a/Tests/Visibility/hidden.c b/Tests/Visibility/hidden.c
index 6e97343..12f071f 100644
--- a/Tests/Visibility/hidden.c
+++ b/Tests/Visibility/hidden.c
@@ -1,4 +1,9 @@
-int hidden_function(void) { return 0; }
+int hidden_function(void)
+{
+ return 0;
+}
-__attribute__((visibility("default")))
-int not_hidden(void) { return hidden_function(); }
+__attribute__((visibility("default"))) int not_hidden(void)
+{
+ return hidden_function();
+}
diff --git a/Tests/Visibility/shared.c b/Tests/Visibility/shared.c
index bb94976..7a07939 100644
--- a/Tests/Visibility/shared.c
+++ b/Tests/Visibility/shared.c
@@ -1,3 +1,6 @@
extern int not_hidden(void);
-int shared(void) { return not_hidden(); }
+int shared(void)
+{
+ return not_hidden();
+}