diff options
author | Kitware Robot <kwrobot@kitware.com> | 2018-06-01 13:53:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-01 13:53:42 (GMT) |
commit | d7204e649ed4ebb19bb341b4e49eb51514364922 (patch) | |
tree | d9ac3ded5ae6899be7188795011743fe3e6da0a6 /Tests/RunCMake/ObjectLibrary | |
parent | 12fed3edb107c949671043196fa94c542b45452a (diff) | |
download | CMake-d7204e649ed4ebb19bb341b4e49eb51514364922.zip CMake-d7204e649ed4ebb19bb341b4e49eb51514364922.tar.gz CMake-d7204e649ed4ebb19bb341b4e49eb51514364922.tar.bz2 |
Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a
new style defined by `.clang-format`. Use `clang-format` version 6.0.
* 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/RunCMake/ObjectLibrary')
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/a.c | 4 | ||||
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/b.c | 6 | ||||
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/exe.c | 6 | ||||
-rw-r--r-- | Tests/RunCMake/ObjectLibrary/requires.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/a.c b/Tests/RunCMake/ObjectLibrary/a.c index 5beb3f1..8e490f3 100644 --- a/Tests/RunCMake/ObjectLibrary/a.c +++ b/Tests/RunCMake/ObjectLibrary/a.c @@ -1,7 +1,7 @@ #if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB) -#define EXPORT __declspec(dllexport) +# define EXPORT __declspec(dllexport) #else -#define EXPORT +# define EXPORT #endif EXPORT int a(void) diff --git a/Tests/RunCMake/ObjectLibrary/b.c b/Tests/RunCMake/ObjectLibrary/b.c index 7549abf..220ce03 100644 --- a/Tests/RunCMake/ObjectLibrary/b.c +++ b/Tests/RunCMake/ObjectLibrary/b.c @@ -1,7 +1,7 @@ #if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB) -#define EXPORT __declspec(dllexport) +# define EXPORT __declspec(dllexport) #else -#define EXPORT +# define EXPORT #endif extern int a(void); @@ -10,5 +10,5 @@ EXPORT int b() return a(); } #ifndef REQUIRED -#error "REQUIRED needs to be defined" +# error "REQUIRED needs to be defined" #endif diff --git a/Tests/RunCMake/ObjectLibrary/exe.c b/Tests/RunCMake/ObjectLibrary/exe.c index 6efdae7..2e08700 100644 --- a/Tests/RunCMake/ObjectLibrary/exe.c +++ b/Tests/RunCMake/ObjectLibrary/exe.c @@ -1,7 +1,7 @@ #if defined(_WIN32) && defined(COMPILE_FOR_SHARED_LIB) -#define IMPORT __declspec(dllimport) +# define IMPORT __declspec(dllimport) #else -#define IMPORT +# define IMPORT #endif extern IMPORT int b(void); @@ -10,5 +10,5 @@ int main() return b(); } #ifndef REQUIRED -#error "REQUIRED needs to be defined" +# error "REQUIRED needs to be defined" #endif diff --git a/Tests/RunCMake/ObjectLibrary/requires.c b/Tests/RunCMake/ObjectLibrary/requires.c index d524952..685632b 100644 --- a/Tests/RunCMake/ObjectLibrary/requires.c +++ b/Tests/RunCMake/ObjectLibrary/requires.c @@ -4,5 +4,5 @@ int required() return 0; } #else -#error "REQUIRED not defined" +# error "REQUIRED not defined" #endif |