<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/61209>61209</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang-format IntegerLiteralSeparator too strict
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          JVApen
      </td>
    </tr>
</table>

<pre>
    When using IntegerLiteralSeparator with a Decimal digit separator at '3', you get a digit separator once your integer has a 4th digit.
However, consider the following case:
````
auto today = std::chrono::year_month_day{2023, 3, 6};
````
due to this guideline, it gets transformed into:
````
auto today = std::chrono::year_month_day{2'023, 3, 6};
````

Although correct according to the configuration, it does not improve the readability of that code.
Would it be possible to next to Decimal have an option MinDigitDecimal which is used to check if we have sufficient digits before this transformation is needed? For the value 5, it would require 10'000, though not 1'000.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU02v4yYU_TVkc_UijJ04WXiRN1HUVu2qUmc5wnBtaAk3hUvS_PsKOzOzqN6i0kgWWNyvcw4HnbOfI-Igdu9id97owo7S8MsfpxvGzUj2OXx2GKFkH2f4OTLOmH71jEmH3_Gmk2ZK8PDsQMMZjb_qANbPniF_C2sGofpWqF6oT_CkAjMy6P_kUTRYwwn8OgiczqChY7fmboU8C3n6iR54x1SbGYrZW0zADmGiEOhRgRqdUbSnNV3s5fdvOdGFCZisfoJoz5DZ1uT2ZFyiSOv_E3X6cqXI7ovVT9G_K6naOnJZ9qI_i_b9owG2INQRzmeYi7cYfMRa57lyz8BJxzxRuqKtZOmHgxWq_x941_UU2FGZHRhKCQ2DNoaSrYIuZLDKPfm5JM2e4ouPJcwQicFfb4nuuCQm1FaPPnh-Ak3ATjMYsvi6wc9Ugq3FI8KNcvZjWASL-A_X_auTnL4j6Ah0qwPhNx_P1Qdfww_njQOfoWS0tc44NH-Bn-CBa20u0-SNx8irgzKMOFHC9Wq-3cLCpzaKiBataC9wodVUdx0Kwu5F9rEAT_h38QmhkVVmKWvwJV0VollPtxs7tPbYHvUGh2bfH-SxV0e5cUM39v2uOzTGSKX7HY5d0x2Ox9ZMnR0Pndn4obpNtnLfSHlo5FYeGn3YWzX1nT60kxKdxKv2YRvC_bqlNG98zgWHfaPkcRP0iCEvb1qpiA9YgkKp-sTTUGvexjJn0cngM-fvXdhzwOFT0HF-W4X58NEzEWRO3vCmpDA45luublQXoS6zZ1fGraGrUJfa_bW93RL9iYaFuiyYslCXBfO_AQAA__8WY3Wr">