Skip to content

Conversation

@mgovers
Copy link
Member

@mgovers mgovers commented Dec 5, 2025

Visual Studio 2026 came out recently and it comes with LLVM 20. This fixes compatibility there:

  • Don't compare signed and unsigned integers using static_cast; instead use either:
    • std::ssize (directly obtain a signed value instead of unsigned for sizes)
    • std::cmp_* (integer-safe comparison)
    • range-based for-loops using IdxRange
    • std::views::zip/std::views::enumerate where index-based ranges were not necessary (only affected cases)
  • Explicitly disable portability-template-virtual-member-function checks because we already test on MSVC anyways so we do not need it, and it also resulted in false positives as a result of header-only stuff

Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@mgovers mgovers self-assigned this Dec 5, 2025
@mgovers mgovers added the improvement Improvement on internal implementation label Dec 5, 2025
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Signed-off-by: Martijn Govers <martygovers@hotmail.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Signed-off-by: Martijn Govers <martygovers@hotmail.com>
…opology.hpp


Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Signed-off-by: Martijn Govers <martygovers@hotmail.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Signed-off-by: Martijn Govers <martygovers@hotmail.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Signed-off-by: Martijn Govers <martygovers@hotmail.com>
Copy link
Member Author

@mgovers mgovers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The final sonar cloud warning is a false positive

mgovers and others added 3 commits December 5, 2025 16:13
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>

Signed-off-by: Martijn Govers <martygovers@hotmail.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2025

@mgovers
Copy link
Member Author

mgovers commented Dec 8, 2025

Quality Gate Passed Quality Gate passed

Issues 2 New issues 0 Accepted issues

Measures 0 Security Hotspots 100.0% Coverage on New Code 0.0% Duplication on New Code

See analysis details on SonarQube Cloud

remaining sonar cloud warnings can't be resolved yet because our macos runners don't support std::views::as_const yet

@mgovers mgovers requested a review from figueroa1395 December 8, 2025 08:21
@mgovers mgovers enabled auto-merge December 8, 2025 08:45
@mgovers mgovers added this pull request to the merge queue Dec 8, 2025
Merged via the queue into main with commit abff148 Dec 8, 2025
31 checks passed
@mgovers mgovers deleted the feature/clang-tidy-20 branch December 8, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement on internal implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants