summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/ObjectLibrary
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2018-06-01 09:53:41 -0400
committerBrad King <brad.king@kitware.com>2018-06-01 09:53:42 -0400
commitd7204e649ed4ebb19bb341b4e49eb51514364922 (patch)
treed9ac3ded5ae6899be7188795011743fe3e6da0a6 /Tests/RunCMake/ObjectLibrary
parent12fed3edb107c949671043196fa94c542b45452a (diff)
downloadcmake-d7204e649ed4ebb19bb341b4e49eb51514364922.tar.gz
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.c4
-rw-r--r--Tests/RunCMake/ObjectLibrary/b.c6
-rw-r--r--Tests/RunCMake/ObjectLibrary/exe.c6
-rw-r--r--Tests/RunCMake/ObjectLibrary/requires.c2
4 files changed, 9 insertions, 9 deletions
diff --git a/Tests/RunCMake/ObjectLibrary/a.c b/Tests/RunCMake/ObjectLibrary/a.c
index 5beb3f17ad..8e490f374a 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 7549abf60e..220ce03029 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 6efdae7eb7..2e08700c30 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 d524952b43..685632b3d4 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