[FORMATTING] [CMAKE] Remove space in 'if (' (#2847)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Tue, 26 May 2020 18:24:02 +0000 (20:24 +0200)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 18:24:02 +0000 (20:24 +0200)
17 files changed:
CMakeLists.txt
base/applications/wordpad/CMakeLists.txt
base/services/nfsd/CMakeLists.txt
boot/environ/CMakeLists.txt
dll/keyboard/CMakeLists.txt
drivers/base/CMakeLists.txt
drivers/network/dd/netkvm/CMakeLists.txt
hal/halx86/CMakeLists.txt
modules/rosapps/applications/CMakeLists.txt
modules/rosapps/applications/sysutils/CMakeLists.txt
modules/rostests/winetests/CMakeLists.txt
sdk/cmake/CMakeMacros.cmake
sdk/cmake/gcc.cmake
sdk/cmake/msvc.cmake
sdk/tools/mkisofs/CMakeLists.txt
toolchain-clang.cmake
toolchain-gcc.cmake

index 703d92f..c361321 100644 (file)
@@ -249,7 +249,7 @@ else()
     endif()
 
     # For MSVC builds, this puts all debug symbols file in the same directory.
     endif()
 
     # For MSVC builds, this puts all debug symbols file in the same directory.
-    if (MSVC)
+    if(MSVC)
         set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/msvc_pdb")
     elseif(SEPARATE_DBG)
         set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/symbols")
         set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/msvc_pdb")
     elseif(SEPARATE_DBG)
         set(CMAKE_PDB_OUTPUT_DIRECTORY "${REACTOS_BINARY_DIR}/symbols")
index 80d9117..4953dd8 100644 (file)
@@ -4,7 +4,7 @@ remove_definitions(-D_WIN32_IE=0x600)
 add_definitions(-D__ROS_LONG64__)
 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
 
 add_definitions(-D__ROS_LONG64__)
 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
 
-if (MSVC)
+if(MSVC)
     # Disable warning C4477 (printf format warnings)
     add_compile_flags("/wd4477")
 endif()
     # Disable warning C4477 (printf format warnings)
     add_compile_flags("/wd4477")
 endif()
index d92ff83..0da3892 100644 (file)
@@ -7,7 +7,7 @@ include_directories(
     ${REACTOS_SOURCE_DIR}/drivers/filesystems/nfs
     ${REACTOS_SOURCE_DIR}/dll/np/nfs)
 
     ${REACTOS_SOURCE_DIR}/drivers/filesystems/nfs
     ${REACTOS_SOURCE_DIR}/dll/np/nfs)
 
-if (MSVC)
+if(MSVC)
     # Disable warning C4477 (printf format warnings)
     add_compile_flags("/wd4477")
 endif()
     # Disable warning C4477 (printf format warnings)
     add_compile_flags("/wd4477")
 endif()
index 9bafea5..4f62a8b 100644 (file)
@@ -82,7 +82,7 @@ add_executable(bootmgfw ${BOOTMGR_BASE_SOURCE} app/bootmgr/bootmgr.rc)
 set_target_properties(bootmgfw PROPERTIES SUFFIX ".efi")
 
 if(MSVC)
 set_target_properties(bootmgfw PROPERTIES SUFFIX ".efi")
 
 if(MSVC)
-    if (ARCH STREQUAL "arm")
+    if(ARCH STREQUAL "arm")
         add_target_link_flags(bootmgfw "/ignore:4078 /ignore:4254 /DRIVER")
     else()
         add_target_link_flags(bootmgfw "/ignore:4078 /ignore:4254 /DRIVER /FIXED")
         add_target_link_flags(bootmgfw "/ignore:4078 /ignore:4254 /DRIVER")
     else()
         add_target_link_flags(bootmgfw "/ignore:4078 /ignore:4254 /DRIVER /FIXED")
index 088cb6a..f728060 100644 (file)
@@ -108,7 +108,7 @@ foreach(_keyboard_layout ${_keyboard_layouts})
     endif()
 
     # dynamic analysis switches
     endif()
 
     # dynamic analysis switches
-    if (STACK_PROTECTOR)
+    if(STACK_PROTECTOR)
         target_link_libraries(${_keyboard_layout} gcc_ssp)
     endif()
 
         target_link_libraries(${_keyboard_layout} gcc_ssp)
     endif()
 
index c2f2b46..a984b21 100644 (file)
@@ -4,7 +4,7 @@ add_subdirectory(bootvid)
 add_subdirectory(condrv)
 
 if(_WINKD_)
 add_subdirectory(condrv)
 
 if(_WINKD_)
-    if (GDB)
+    if(GDB)
         add_subdirectory(kdgdb)
     else()
         add_subdirectory(kdcom)
         add_subdirectory(kdgdb)
     else()
         add_subdirectory(kdcom)
index 8816535..73a4a2f 100644 (file)
@@ -26,7 +26,7 @@ add_importlibs(netkvm ndis ntoskrnl hal)
 add_cd_file(TARGET netkvm DESTINATION reactos/system32/drivers FOR all)
 add_driver_inf(netkvm netkvm.inf)
 
 add_cd_file(TARGET netkvm DESTINATION reactos/system32/drivers FOR all)
 add_driver_inf(netkvm netkvm.inf)
 
-if (NOT MSVC)
+if(NOT MSVC)
     add_compile_flags("-Wno-unused-function")
     add_compile_flags("-Wno-old-style-declaration")
     add_compile_flags("-Wno-unknown-pragmas")
     add_compile_flags("-Wno-unused-function")
     add_compile_flags("-Wno-old-style-declaration")
     add_compile_flags("-Wno-unknown-pragmas")
index c462dc1..4dabc83 100644 (file)
@@ -32,7 +32,7 @@ function(add_hal _halname)
         target_link_libraries(${_halname} ${_haldata_LIBS})
     endif()
 
         target_link_libraries(${_halname} ${_haldata_LIBS})
     endif()
 
-    if (${_halname} STREQUAL "hal")
+    if(${_halname} STREQUAL "hal")
         target_link_libraries(${_halname} libcntpr arbiter)
     else()
         target_link_libraries(${_halname} libcntpr)
         target_link_libraries(${_halname} libcntpr arbiter)
     else()
         target_link_libraries(${_halname} libcntpr)
index 19c0ecf..fd2658b 100644 (file)
@@ -1,6 +1,6 @@
 add_subdirectory(cmdutils)
 add_subdirectory(devutils)
 add_subdirectory(cmdutils)
 add_subdirectory(devutils)
-if (ARCH STREQUAL "i386")
+if(ARCH STREQUAL "i386")
     add_subdirectory(explorer-old)
     add_subdirectory(fraginator)
 endif()
     add_subdirectory(explorer-old)
     add_subdirectory(fraginator)
 endif()
index be5a99d..989e06f 100644 (file)
@@ -6,7 +6,7 @@ add_subdirectory(kill)
 add_subdirectory(logevent)
 add_subdirectory(lsdd)
 add_subdirectory(man)
 add_subdirectory(logevent)
 add_subdirectory(lsdd)
 add_subdirectory(man)
-if (ARCH STREQUAL "i386")
+if(ARCH STREQUAL "i386")
     add_subdirectory(pedump)
 endif()
 add_subdirectory(regexpl)
     add_subdirectory(pedump)
 endif()
 add_subdirectory(regexpl)
index c4553c5..fb8df2e 100644 (file)
@@ -1,14 +1,14 @@
 
 add_definitions(-D__ROS_LONG64__)
 
 
 add_definitions(-D__ROS_LONG64__)
 
-if (MSVC)
+if(MSVC)
     add_compile_flags("/wd4090") # C4090: 'function': different 'const' qualifiers
     add_compile_flags("/wd4133") # C4133: 'function': incompatible types - from '<enum> *' to 'UINT *'
     add_compile_flags("/wd4146") # C4146: unary minus operator applied to unsigned type, result still unsigned
     add_compile_flags("/wd4189") # C4189: 'x': local variable is initialized but not referenced
     add_compile_flags("/wd4267") # C4267: '=': conversion from 'size_t' to 'int', possible loss of data
     add_compile_flags("/wd4305") # C4305: '=': truncation from 'double' to 'FLOAT'
     add_compile_flags("/wd4090") # C4090: 'function': different 'const' qualifiers
     add_compile_flags("/wd4133") # C4133: 'function': incompatible types - from '<enum> *' to 'UINT *'
     add_compile_flags("/wd4146") # C4146: unary minus operator applied to unsigned type, result still unsigned
     add_compile_flags("/wd4189") # C4189: 'x': local variable is initialized but not referenced
     add_compile_flags("/wd4267") # C4267: '=': conversion from 'size_t' to 'int', possible loss of data
     add_compile_flags("/wd4305") # C4305: '=': truncation from 'double' to 'FLOAT'
-    if (ARCH STREQUAL "amd64")
+    if(ARCH STREQUAL "amd64")
         add_compile_flags("/wd4101") # C4101: 'x': unreferenced local variable
         add_compile_flags("/wd4312") # C4312: 'type cast': conversion from 'unsigned int' to 'char *' of greater size
         add_compile_flags("/wd4334") # C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
         add_compile_flags("/wd4101") # C4101: 'x': unreferenced local variable
         add_compile_flags("/wd4312") # C4312: 'type cast': conversion from 'unsigned int' to 'char *' of greater size
         add_compile_flags("/wd4334") # C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
index 1f30436..51ec82d 100644 (file)
@@ -535,7 +535,7 @@ if(NOT MSVC_IDE)
         add_clean_target(${name})
         # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
         get_target_property(_type ${name} TYPE)
         add_clean_target(${name})
         # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
         get_target_property(_type ${name} TYPE)
-        if (_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
+        if(_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
             set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
         endif()
     endfunction()
             set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
         endif()
     endfunction()
@@ -565,7 +565,7 @@ elseif(USE_FOLDER_STRUCTURE)
         endif()
         # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
         get_target_property(_type ${name} TYPE)
         endif()
         # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
         get_target_property(_type ${name} TYPE)
-        if (_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
+        if(_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
             set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
         endif()
     endfunction()
             set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
         endif()
     endfunction()
@@ -580,7 +580,7 @@ else()
         _add_library(${name} ${ARGN})
         # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
         get_target_property(_type ${name} TYPE)
         _add_library(${name} ${ARGN})
         # cmake adds a module_EXPORTS define when compiling a module or a shared library. We don't use that.
         get_target_property(_type ${name} TYPE)
-        if (_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
+        if(_type MATCHES SHARED_LIBRARY|MODULE_LIBRARY)
             set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
         endif()
     endfunction()
             set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "")
         endif()
     endfunction()
@@ -652,7 +652,7 @@ function(set_module_type MODULE TYPE)
     endif()
 
     # Set the PE image version numbers from the NT OS version ReactOS is based on
     endif()
 
     # Set the PE image version numbers from the NT OS version ReactOS is based on
-    if (MSVC)
+    if(MSVC)
         add_target_link_flags(${MODULE} "/VERSION:5.01")
     else()
         add_target_link_flags(${MODULE} "-Wl,--major-image-version,5 -Wl,--minor-image-version,01")
         add_target_link_flags(${MODULE} "/VERSION:5.01")
     else()
         add_target_link_flags(${MODULE} "-Wl,--major-image-version,5 -Wl,--minor-image-version,01")
index 616d457..fa04065 100644 (file)
@@ -388,7 +388,7 @@ function(spec2def _dllname _spec_file)
         message(FATAL_ERROR "spec2def only takes spec files as input.")
     endif()
 
         message(FATAL_ERROR "spec2def only takes spec files as input.")
     endif()
 
-    if (__spec2def_WITH_RELAY)
+    if(__spec2def_WITH_RELAY)
         set(__with_relay_arg "--with-tracing")
     endif()
 
         set(__with_relay_arg "--with-tracing")
     endif()
 
index 01bbfee..4e4e047 100644 (file)
@@ -52,12 +52,12 @@ endif()
 # default for older compilers. See CORE-6507
 if(ARCH STREQUAL "i386")
     add_compile_flags("/arch:IA32")
 # default for older compilers. See CORE-6507
 if(ARCH STREQUAL "i386")
     add_compile_flags("/arch:IA32")
-endif ()
+endif()
 
 # VS 12+ requires /FS when used in parallel compilations
 if(NOT MSVC_IDE)
     add_compile_flags("/FS")
 
 # VS 12+ requires /FS when used in parallel compilations
 if(NOT MSVC_IDE)
     add_compile_flags("/FS")
-endif ()
+endif()
 
 # VS14+ tries to use thread-safe initialization
 add_compile_flags("/Zc:threadSafeInit-")
 
 # VS14+ tries to use thread-safe initialization
 add_compile_flags("/Zc:threadSafeInit-")
@@ -67,7 +67,7 @@ add_compile_flags("/Zc:threadSafeInit-")
 if(ARCH STREQUAL "amd64" AND MSVC_VERSION GREATER 1922)
     add_compile_flags("/d2FH4-")
     add_link_options("/d2:-FH4-")
 if(ARCH STREQUAL "amd64" AND MSVC_VERSION GREATER 1922)
     add_compile_flags("/d2FH4-")
     add_link_options("/d2:-FH4-")
-endif ()
+endif()
 
 # Generate Warnings Level 3
 add_compile_flags("/W3")
 
 # Generate Warnings Level 3
 add_compile_flags("/W3")
@@ -438,7 +438,7 @@ function(spec2def _dllname _spec_file)
         message(FATAL_ERROR "spec2def only takes spec files as input.")
     endif()
 
         message(FATAL_ERROR "spec2def only takes spec files as input.")
     endif()
 
-    if (__spec2def_WITH_RELAY)
+    if(__spec2def_WITH_RELAY)
         set(__with_relay_arg "--with-tracing")
     endif()
 
         set(__with_relay_arg "--with-tracing")
     endif()
 
index 0caa8c8..86cd327 100644 (file)
@@ -85,7 +85,7 @@ if(MSVC)
     # MSVC complains about the resulting foo() vs. foo(void) mismatches.
     target_compile_options(mkisofs PRIVATE "/wd4113")
 
     # MSVC complains about the resulting foo() vs. foo(void) mismatches.
     target_compile_options(mkisofs PRIVATE "/wd4113")
 
-    if (ARCH STREQUAL "amd64")
+    if(ARCH STREQUAL "amd64")
         # Disable warning "conversion from 'size_t' to 'int', possible loss of data"
         target_compile_options(mkisofs PRIVATE "/wd4267")
 
         # Disable warning "conversion from 'size_t' to 'int', possible loss of data"
         target_compile_options(mkisofs PRIVATE "/wd4267")
 
index 70c5ba7..1c9ad5d 100644 (file)
@@ -4,7 +4,7 @@ if(NOT ARCH)
 endif()
 
 # Choose the right MinGW toolchain prefix
 endif()
 
 # Choose the right MinGW toolchain prefix
-if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
+if(NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
     if(ARCH STREQUAL "i386")
 
         if(CMAKE_HOST_WIN32)
     if(ARCH STREQUAL "i386")
 
         if(CMAKE_HOST_WIN32)
@@ -24,7 +24,7 @@ if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
     endif()
 endif()
 
     endif()
 endif()
 
-if (NOT DEFINED MINGW_TOOLCHAIN_SUFFIX)
+if(NOT DEFINED MINGW_TOOLCHAIN_SUFFIX)
     set(MINGW_TOOLCHAIN_SUFFIX "" CACHE STRING "MinGW Toolchain Suffix")
 endif()
 
     set(MINGW_TOOLCHAIN_SUFFIX "" CACHE STRING "MinGW Toolchain Suffix")
 endif()
 
index e1487b3..1d2a3a2 100644 (file)
@@ -10,7 +10,7 @@ if(NOT DEFINED CMAKE_BUILD_TYPE)
 endif()
 
 # Choose the right MinGW toolchain prefix
 endif()
 
 # Choose the right MinGW toolchain prefix
-if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
+if(NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
     if(ARCH STREQUAL "i386")
 
         if(CMAKE_HOST_WIN32)
     if(ARCH STREQUAL "i386")
 
         if(CMAKE_HOST_WIN32)
@@ -30,7 +30,7 @@ if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
     endif()
 endif()
 
     endif()
 endif()
 
-if (NOT DEFINED MINGW_TOOLCHAIN_SUFFIX)
+if(NOT DEFINED MINGW_TOOLCHAIN_SUFFIX)
     set(MINGW_TOOLCHAIN_SUFFIX "" CACHE STRING "MinGW Toolchain Suffix")
 endif()
 
     set(MINGW_TOOLCHAIN_SUFFIX "" CACHE STRING "MinGW Toolchain Suffix")
 endif()