Skip to content

Commit

Permalink
Start adaptions for updated runners
Browse files Browse the repository at this point in the history
  • Loading branch information
ckormanyos committed Oct 12, 2024
1 parent 77a19b4 commit d6c7a39
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 12 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Checks: >
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
AnalyzeTemporaryDtors: false
FormatStyle: none
User: john
CheckOptions:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wide_decimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ jobs:
git submodule update --init libs/multiprecision
- uses: ilammy/msvc-dev-cmd@v1
with:
toolset: 14.2
toolset: 14.4
- name: bootstrap-boost
working-directory: ${{ runner.workspace }}/boost-root
run: |
Expand Down
13 changes: 11 additions & 2 deletions .tidy/make/make_tidy_03_flags.gmk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ------------------------------------------------------------------------------
# Copyright Christopher Kormanyos 2022 - 2023.
# Copyright Christopher Kormanyos 2022 - 2024.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
Expand Down Expand Up @@ -41,8 +41,17 @@ C_INCLUDES :=$(addprefix -I,$(C_INCLUDES))


TIDY_CHECKS = "*, \
-portability-simd-*, \
-cert-dcl58-cpp, \
-cppcoreguidelines-rvalue-reference-param-not-moved, \
-cppcoreguidelines-avoid-do-while, \
-modernize-type-traits, \
-modernize-use-constraints, \
-misc-header-include-cycle, \
-misc-include-cleaner, \
-misc-const-correctness, \
-performance-avoid-endl, \
-readability-identifier-length, \
-readability-redundant-casting, \
-altera-struct-pack-align, \
-altera-unroll-loops, \
-fuchsia-*, \
Expand Down
8 changes: 4 additions & 4 deletions math/wide_decimal/decwide_t_detail_fft.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
///////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2013 - 2023. //
// Copyright Christopher Kormanyos 2013 - 2024. //
// Distributed under the Boost Software License, //
// Version 1.0. (See accompanying file LICENSE_1_0.txt //
// or copy at http://www.boost.org/LICENSE_1_0.txt) //
Expand Down Expand Up @@ -34,13 +34,13 @@
constexpr auto template_half() -> float_type { return static_cast<float_type>(static_cast<float_type>(1) / 2); }

template<>
constexpr auto template_one<float>() -> float { return static_cast<float>(1.0F); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
constexpr auto template_one<float>() -> float { return static_cast<float>(1.0L); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)

template<>
constexpr auto template_one<double>() -> double { return static_cast<double>(1.0F); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
constexpr auto template_one<double>() -> double { return static_cast<double>(1.0L); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)

template<>
constexpr auto template_one<long double>() -> long double { return static_cast<long double>(1.0F); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
constexpr auto template_one<long double>() -> long double { return static_cast<long double>(1.0L); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)

template<>
constexpr auto template_half<float>() -> float { return static_cast<float>(0.5L); } // NOLINT(cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers)
Expand Down
2 changes: 1 addition & 1 deletion util/memory/util_n_slot_array_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
static constexpr std::uint_fast32_t slot_width = SlotWidth;
static constexpr std::size_t slot_count = SlotCount;

using slot_array_type = std::array<T, slot_width>;
using slot_array_type = std::array<T, static_cast<std::size_t>(slot_width)>;
using slot_array_memory_type = std::array<slot_array_type, slot_count>;
using slot_array_flags_type = std::array<std::uint8_t, slot_count>;

Expand Down
9 changes: 9 additions & 0 deletions util/utility/util_baselexical_cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,16 @@
}
}

#if (defined(__GNUC__) && !defined(__clang__)&& (__GNUC__ > 12))
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow="
#endif

std::reverse(out_first, out + static_cast<std::size_t>(UINT8_C(1)));

#if (defined(__GNUC__) && !defined(__clang__)&& (__GNUC__ > 12))
#pragma GCC diagnostic pop
#endif
}

return out + static_cast<std::size_t>(UINT8_C(1));
Expand Down
6 changes: 3 additions & 3 deletions wide_decimal_vs2022.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{e8006465-b814-49f0-b17c-5cc35591686d}</ProjectGuid>
<RootNamespace>widedecimal</RootNamespace>
<WindowsTargetPlatformVersion>10.0.20348.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectName>wide_decimal_vs2022</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='wide-decimal-debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='wide-decimal-release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v142</PlatformToolset>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
Expand Down

0 comments on commit d6c7a39

Please sign in to comment.