Fields

hardware None
os None

Parameters

Fields

NameValue

Parameters

NameValue
git_commit commit 381a649fb991eadb0c594de2d8b6166fcc11345a
Author: cor3ntin <corentinjabot@gmail.com>
Date: Thu May 15 18:16:05 2025 +0200

[Clang] Add warnings when mixing different charN_t types (#138708)

charN_t represent code units of different UTF encodings. Therefore the
values of 2 different charN_t objects do not represent the same
characters.

In order to avoid comparing apples and oranges, we add new warnings to
warn on:
- Implicit conversions
- Comparisons
- Other cases involving arithmetic conversions

We only produce the warning if we cannot establish the comparison would
be safe through constant evaluation.

The new `-Wimplicit-unicode-conversion` warning is enabled by default.

Note that this PR intentionally doesn;t touches char/wchar_t, but it
would be worth considering also warning on extending the new warnings to
these types (in a follow up)

Additionally most arithmetic operations on charN_t don't really make
sense (ie what does it mean to addition code units), so we could add
warnings for that.

Fixes #138526
Filter

ldionne-old-macbook-results test results

Run Order Start Time Duration
Current 537655 2025-12-16T16:40:01 0:00:00
Previous 537602 2025-12-16T16:40:01 0:00:00
Baseline 485288 2025-12-16T16:40:01 0:00:00


Tests Summary

Status Group # # (B)
Performance Regressions 3 0
Performance Improvements 2 0
Added Tests 0 18
Unchanged Tests 85 72
Total Tests 90

Performance Regressions - execution_time Δ Previous Current σ Δ (B) σ (B)
766_femflow_r 1.99% 12.825 13.080 - 0.00% -
727_cppcheck_r 1.30% 24.476 24.795 - 0.00% -
737_gmsh_r 1.27% 12.796 12.959 - 0.00% -

Performance Improvements - execution_time Δ Previous Current σ Δ (B) σ (B)
707_ntest_r -2.52% 18.407 17.943 - 0.00% -
710_omnetpp_r -2.03% 8.492 8.319 - 0.00% -

Added Tests - execution_time
706_stockfish_r
707_ntest_r
709_cactus_r
710_omnetpp_r
721_gcc_r
723_llvm_r
727_cppcheck_r
729_abc_r
731_astcenc_r
734_vpr_r
735_gem5_r
736_ocio_r
737_gmsh_r
748_flightdm_r
750_sealcrypto_r
753_ns3_r
766_femflow_r
767_nest_r


Report Time: 0.07s
Name Current %
706_stockfish_r 22.123 -
707_ntest_r 17.943 -2.52%
709_cactus_r 19.763 -
710_omnetpp_r 8.319 -2.03%
721_gcc_r 12.931 -
723_llvm_r 11.498 -
727_cppcheck_r 24.795 1.30%
729_abc_r 18.568 -
731_astcenc_r 10.117 -
734_vpr_r 15.545 -
735_gem5_r 13.942 -
736_ocio_r 16.252 -
737_gmsh_r 12.959 1.27%
748_flightdm_r 8.921 -
750_sealcrypto_r 18.484 -
753_ns3_r 10.660 -
766_femflow_r 13.080 1.99%
767_nest_r 14.009 -
Geometric Mean 14.348 -