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/InterfaceLibrary | |
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/InterfaceLibrary')
-rw-r--r-- | Tests/InterfaceLibrary/definetestexe.cpp | 2 | ||||
-rw-r--r-- | Tests/InterfaceLibrary/dummy.cpp | 2 | ||||
-rw-r--r-- | Tests/InterfaceLibrary/ifacedir/sub.cpp | 5 | ||||
-rw-r--r-- | Tests/InterfaceLibrary/map_config.cpp | 2 | ||||
-rw-r--r-- | Tests/InterfaceLibrary/obj.cpp | 5 | ||||
-rw-r--r-- | Tests/InterfaceLibrary/sharedlibtestexe.cpp | 2 |
6 files changed, 12 insertions, 6 deletions
diff --git a/Tests/InterfaceLibrary/definetestexe.cpp b/Tests/InterfaceLibrary/definetestexe.cpp index 9044076..a6b5592 100644 --- a/Tests/InterfaceLibrary/definetestexe.cpp +++ b/Tests/InterfaceLibrary/definetestexe.cpp @@ -18,7 +18,7 @@ extern int obj(); extern int sub(); -int main(int,char**) +int main(int, char**) { return obj() + sub(); } diff --git a/Tests/InterfaceLibrary/dummy.cpp b/Tests/InterfaceLibrary/dummy.cpp index 341aaaf..e9ad257 100644 --- a/Tests/InterfaceLibrary/dummy.cpp +++ b/Tests/InterfaceLibrary/dummy.cpp @@ -1,5 +1,5 @@ -int main(int, char **) +int main(int, char**) { return 0; } diff --git a/Tests/InterfaceLibrary/ifacedir/sub.cpp b/Tests/InterfaceLibrary/ifacedir/sub.cpp index 165a66a..cda7e4f 100644 --- a/Tests/InterfaceLibrary/ifacedir/sub.cpp +++ b/Tests/InterfaceLibrary/ifacedir/sub.cpp @@ -1 +1,4 @@ -int sub() { return 0; } +int sub() +{ + return 0; +} diff --git a/Tests/InterfaceLibrary/map_config.cpp b/Tests/InterfaceLibrary/map_config.cpp index 81bb666..232a18e 100644 --- a/Tests/InterfaceLibrary/map_config.cpp +++ b/Tests/InterfaceLibrary/map_config.cpp @@ -9,7 +9,7 @@ #endif #endif -int main(int,char**) +int main(int, char**) { return 0; } diff --git a/Tests/InterfaceLibrary/obj.cpp b/Tests/InterfaceLibrary/obj.cpp index ee6f5fe..475800d 100644 --- a/Tests/InterfaceLibrary/obj.cpp +++ b/Tests/InterfaceLibrary/obj.cpp @@ -1 +1,4 @@ -int obj() { return 0; } +int obj() +{ + return 0; +} diff --git a/Tests/InterfaceLibrary/sharedlibtestexe.cpp b/Tests/InterfaceLibrary/sharedlibtestexe.cpp index c677f70..44f160d 100644 --- a/Tests/InterfaceLibrary/sharedlibtestexe.cpp +++ b/Tests/InterfaceLibrary/sharedlibtestexe.cpp @@ -10,7 +10,7 @@ #include "sharedlib.h" #include "shareddependlib.h" -int main(int,char**) +int main(int, char**) { SharedLibObject sl; SharedDependLibObject sdl = sl.object(); |