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/CompileCommandOutput | |
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/CompileCommandOutput')
-rw-r--r-- | Tests/CompileCommandOutput/compile_command_output.cxx | 2 | ||||
-rw-r--r-- | Tests/CompileCommandOutput/file_with_underscores.cxx | 4 | ||||
-rw-r--r-- | Tests/CompileCommandOutput/relative.cxx | 4 | ||||
-rw-r--r-- | Tests/CompileCommandOutput/relative.h | 12 |
4 files changed, 13 insertions, 9 deletions
diff --git a/Tests/CompileCommandOutput/compile_command_output.cxx b/Tests/CompileCommandOutput/compile_command_output.cxx index 145a064..25795a0 100644 --- a/Tests/CompileCommandOutput/compile_command_output.cxx +++ b/Tests/CompileCommandOutput/compile_command_output.cxx @@ -1,7 +1,7 @@ #include "file_with_underscores.h" #include "relative.h" -int main (int argc, char** argv) +int main(int argc, char** argv) { file_with_underscores(); relative(); diff --git a/Tests/CompileCommandOutput/file_with_underscores.cxx b/Tests/CompileCommandOutput/file_with_underscores.cxx index 4f42ccf..d45c3e0 100644 --- a/Tests/CompileCommandOutput/file_with_underscores.cxx +++ b/Tests/CompileCommandOutput/file_with_underscores.cxx @@ -1,3 +1,5 @@ #include "file_with_underscores.h" -void file_with_underscores() {} +void file_with_underscores() +{ +} diff --git a/Tests/CompileCommandOutput/relative.cxx b/Tests/CompileCommandOutput/relative.cxx index eae11e2..cd1d9b6 100644 --- a/Tests/CompileCommandOutput/relative.cxx +++ b/Tests/CompileCommandOutput/relative.cxx @@ -1,3 +1,5 @@ #include "relative.h" -void relative() {} +void relative() +{ +} diff --git a/Tests/CompileCommandOutput/relative.h b/Tests/CompileCommandOutput/relative.h index ddfe551..221e354 100644 --- a/Tests/CompileCommandOutput/relative.h +++ b/Tests/CompileCommandOutput/relative.h @@ -1,11 +1,11 @@ #if defined(_WIN32) -# ifdef test2_EXPORTS -# define TEST2_EXPORT __declspec(dllexport) -# else -# define TEST2_EXPORT __declspec(dllimport) -# endif +#ifdef test2_EXPORTS +#define TEST2_EXPORT __declspec(dllexport) #else -# define TEST2_EXPORT +#define TEST2_EXPORT __declspec(dllimport) +#endif +#else +#define TEST2_EXPORT #endif TEST2_EXPORT void relative(); |