Skip to content

Commit

Permalink
style: pre-commit styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Jul 3, 2024
1 parent de13817 commit e0becc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,9 @@ def generate(self):
tc.cache_variables["MP_UNITS_API_FREESTANDING"] = True
else:
tc.cache_variables["MP_UNITS_API_STD_FORMAT"] = self.options.std_format
tc.cache_variables["MP_UNITS_API_STRING_VIEW_RET"] = (
self.options.string_view_ret
)
tc.cache_variables[
"MP_UNITS_API_STRING_VIEW_RET"
] = self.options.string_view_ret
tc.cache_variables["MP_UNITS_API_NO_CRTP"] = self.options.no_crtp
tc.cache_variables["MP_UNITS_API_CONTRACTS"] = str(
self.options.contracts
Expand Down
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ endif()

# clang++-18 supports explicit `this` parameter
# https://github.com/llvm/llvm-project/issues/82780
if(NOT ${projectPrefix}EXPLICIT_THIS_PARAMETER_SUPPORTED
AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "18")
if(NOT ${projectPrefix}EXPLICIT_THIS_PARAMETER_SUPPORTED AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "18"
)
message(STATUS "Clang 18+ detected, overriding `no CRTP` support")
set(${projectPrefix}EXPLICIT_THIS_PARAMETER_SUPPORTED ON)
endif()
Expand Down

0 comments on commit e0becc9

Please sign in to comment.