diff options
author | Kitware Robot <kwrobot@kitware.com> | 2016-05-16 10:34:04 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-16 16:05:19 -0400 |
commit | d9fd2f5402eeaa345691313658e02b51038f570b (patch) | |
tree | dca71b9a7e267f4c6300da3eb770415381726785 /Tests/FindBoost | |
parent | 82df6deaafb36cbbfd450202bb20b320f637751a (diff) | |
download | cmake-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/FindBoost')
-rw-r--r-- | Tests/FindBoost/Test/main.cxx | 24 | ||||
-rw-r--r-- | Tests/FindBoost/TestHeaders/main.cxx | 3 |
2 files changed, 13 insertions, 14 deletions
diff --git a/Tests/FindBoost/Test/main.cxx b/Tests/FindBoost/Test/main.cxx index 0f44f30b08..6e8b5da630 100644 --- a/Tests/FindBoost/Test/main.cxx +++ b/Tests/FindBoost/Test/main.cxx @@ -1,24 +1,22 @@ #include <boost/filesystem.hpp> #include <boost/thread.hpp> -namespace -{ - - boost::mutex m1; - boost::recursive_mutex m2; +namespace { - void - threadmain() - { - boost::lock_guard<boost::mutex> lock1(m1); - boost::lock_guard<boost::recursive_mutex> lock2(m2); +boost::mutex m1; +boost::recursive_mutex m2; - boost::filesystem::path p(boost::filesystem::current_path()); - } +void threadmain() +{ + boost::lock_guard<boost::mutex> lock1(m1); + boost::lock_guard<boost::recursive_mutex> lock2(m2); + boost::filesystem::path p(boost::filesystem::current_path()); +} } -int main() { +int main() +{ boost::thread foo(threadmain); foo.join(); diff --git a/Tests/FindBoost/TestHeaders/main.cxx b/Tests/FindBoost/TestHeaders/main.cxx index 0400d6dc92..7844de48fa 100644 --- a/Tests/FindBoost/TestHeaders/main.cxx +++ b/Tests/FindBoost/TestHeaders/main.cxx @@ -1,6 +1,7 @@ #include <boost/any.hpp> -int main() { +int main() +{ boost::any a; a = 5; a = std::string("A string"); |