mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
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.
This commit is contained in:
@@ -7,21 +7,21 @@
|
||||
JOIN(EXPECTED_COMPILER_, FEATURE))
|
||||
|
||||
#if !CHECK(CXX_DELEGATING_CONSTRUCTORS)
|
||||
#error cxx_delegating_constructors expected availability did not match.
|
||||
# error cxx_delegating_constructors expected availability did not match.
|
||||
#endif
|
||||
|
||||
#if !CHECK(CXX_VARIADIC_TEMPLATES)
|
||||
#error cxx_variadic_templates expected availability did not match.
|
||||
# error cxx_variadic_templates expected availability did not match.
|
||||
#endif
|
||||
|
||||
#if !CHECK(VERSION_MAJOR)
|
||||
#error Compiler major version did not match.
|
||||
# error Compiler major version did not match.
|
||||
#endif
|
||||
|
||||
#if !CHECK(VERSION_MINOR)
|
||||
#error Compiler minor version did not match.
|
||||
# error Compiler minor version did not match.
|
||||
#endif
|
||||
|
||||
#if !CHECK(VERSION_PATCH)
|
||||
#error Compiler patch version did not match.
|
||||
# error Compiler patch version did not match.
|
||||
#endif
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
|
||||
#if !defined(TEST_COMPILER_C_FUNCTION_PROTOTYPES) || \
|
||||
!TEST_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#error Expected TEST_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
# error Expected TEST_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#endif
|
||||
|
||||
#if !EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#error Expected EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
# error Expected EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#endif
|
||||
|
||||
#if !defined(TEST_COMPILER_C_RESTRICT) || !TEST_COMPILER_C_RESTRICT
|
||||
#if EXPECTED_COMPILER_C_RESTRICT
|
||||
#error Expected TEST_COMPILER_C_RESTRICT
|
||||
#endif
|
||||
# if EXPECTED_COMPILER_C_RESTRICT
|
||||
# error Expected TEST_COMPILER_C_RESTRICT
|
||||
# endif
|
||||
#else
|
||||
#if !EXPECTED_COMPILER_C_RESTRICT
|
||||
#error Expect no TEST_COMPILER_C_RESTRICT
|
||||
#endif
|
||||
# if !EXPECTED_COMPILER_C_RESTRICT
|
||||
# error Expect no TEST_COMPILER_C_RESTRICT
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef TEST_COMPILER_CXX_STATIC_ASSERT
|
||||
#error Expect no CXX features defined
|
||||
# error Expect no CXX features defined
|
||||
#endif
|
||||
|
||||
int main()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "compile_tests.h"
|
||||
|
||||
#ifdef TEST_COMPILER_C_STATIC_ASSERT
|
||||
#error Expect no C features defined
|
||||
# error Expect no C features defined
|
||||
#endif
|
||||
|
||||
TEST_STATIC_ASSERT(true);
|
||||
|
||||
@@ -3,25 +3,25 @@
|
||||
|
||||
#if !defined(MULTI_COMPILER_C_FUNCTION_PROTOTYPES) || \
|
||||
!MULTI_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#error Expected MULTI_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
# error Expected MULTI_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#endif
|
||||
|
||||
#if !EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#error Expected EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
# error Expected EXPECTED_COMPILER_C_FUNCTION_PROTOTYPES
|
||||
#endif
|
||||
|
||||
#if !defined(MULTI_COMPILER_C_RESTRICT) || !MULTI_COMPILER_C_RESTRICT
|
||||
#if EXPECTED_COMPILER_C_RESTRICT
|
||||
#error Expected MULTI_COMPILER_C_RESTRICT
|
||||
#endif
|
||||
# if EXPECTED_COMPILER_C_RESTRICT
|
||||
# error Expected MULTI_COMPILER_C_RESTRICT
|
||||
# endif
|
||||
#else
|
||||
#if !EXPECTED_COMPILER_C_RESTRICT
|
||||
#error Expect no MULTI_COMPILER_C_RESTRICT
|
||||
#endif
|
||||
# if !EXPECTED_COMPILER_C_RESTRICT
|
||||
# error Expect no MULTI_COMPILER_C_RESTRICT
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef MULTI_COMPILER_CXX_STATIC_ASSERT
|
||||
#error Expect no CXX features defined
|
||||
# error Expect no CXX features defined
|
||||
#endif
|
||||
|
||||
int main()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "compile_tests.h"
|
||||
|
||||
#ifdef MULTI_COMPILER_C_STATIC_ASSERT
|
||||
#error Expect no C features defined
|
||||
# error Expect no C features defined
|
||||
#endif
|
||||
|
||||
MULTI_STATIC_ASSERT(true);
|
||||
|
||||
Reference in New Issue
Block a user