From d9fd2f5402eeaa345691313658e02b51038f570b Mon Sep 17 00:00:00 2001 From: Kitware Robot Date: Mon, 16 May 2016 10:34:04 -0400 Subject: 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. --- Tests/SetLang/bar.c | 7 +++---- Tests/SetLang/foo.c | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'Tests/SetLang') diff --git a/Tests/SetLang/bar.c b/Tests/SetLang/bar.c index f59c318b18..b934356fa1 100644 --- a/Tests/SetLang/bar.c +++ b/Tests/SetLang/bar.c @@ -4,18 +4,17 @@ int foo(); class A { public: - A() {this->i = foo();} + A() { this->i = foo(); } int i; }; int main() { A a; - if(a.i == 21) - { + if (a.i == 21) { printf("passed foo is 21\n"); return 0; - } + } printf("Failed foo is not 21\n"); return -1; } diff --git a/Tests/SetLang/foo.c b/Tests/SetLang/foo.c index e7918af587..551dd1b651 100644 --- a/Tests/SetLang/foo.c +++ b/Tests/SetLang/foo.c @@ -2,6 +2,6 @@ int foo() { int r = 10; r++; - int ret = r+10; + int ret = r + 10; return ret; } -- cgit v1.2.1