<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylU8Fu2zAM_Rr7Ithw5DlODj60SQf0NGDYsGMgW3TMRZFciU6Xfv0oN2vSHbYBM2jLlAjyvUeqdfrcHDF0mYYeLRI6GzK02QBKgw-ic8fRKLRB0KAoKbZJcZcsi4u9urJE25lJg0jKDZ1H2JFXSCEpHy4R85cgpqI5qjMqBPHlLaLjsgQ_Ri9a54zAsAsjdKgMB29Fr0yApLz_ezbh4WlCD0EE0kl5x8a50BLsvTK7Ewf_Q9FL1Fyb_HRT-j3zozoLw0IJcuLT9nN2QseQooS5eHz8umHNQFxy4gvoW14YBDID7JDMWaA1aCGRGxGcYDp2nxHqswiDm4y2iazprRX5a_GBaAyRovzItne6dYZy5_fsvfBrH-pv_WCfXEzy_No_wdDf0WRlohzLIuI5Kn9gkCrEMMZzcLaDndOe3TzVTanX5VqlaqLB-WYc0Fg81HWdTt40v8FBGqY2Z8jsGHP6tWSjd9-hI3YxhAkC_1RltVinQ1P1utagV8VaV_Wq7Zf8gJZKLltYa6VTo1owoUmq-0TKdmKiMirGy1WxuFdt0__Hg40sJFuxWBSyKlZ5vSoX0MkS2m4BteyTDwUcFZo85om6p76ZUzKywIcGA4XrIU8o7i3ADJ8REvd9dm6wV9uo_B-uY2zU9UY-D2DFdYhPyqNqDcRWjsoTd5gn62b80pliM_P7CcgISz0>53519</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] `misc-definitions-in-headers` complains when constexpr variable is partially specialized
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            bug,
            clang-tidy
      </td>
    </tr>

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

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

<pre>
    misc-definitions-in-headers complains that
```
#include <type_traits>

template <class T>
constexpr bool is_special = false;

template <class T> requires std::is_integral_v<T>
constexpr bool is_special<T> = true;
```
may lead to ODR-violations. IIUC the specialized is_special is implicitly inline, so clang-tidy shouldn't complain.
https://godbolt.org/z/nE7Wfhnqo shows that `is_special<int>` is marked as `linkonce_odr`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUsFu2zAM_Rr5IsSQ5bpuDz60SQf0NGDYsGMgS3TMVZFcSU6Xfv0oN2vSHbYBtGVa1ON7j-q9OXZ7jHplYECHCb2LK3SrEZSBELn2-8kqdJGnUSUmNkzcsWtxirdU1ui0nQ1wVq_TcYJtCgpTZPXDqWJ5J8hQaanSVsXIv75XaGqb4OcUeO-95Ri3cQKNylLxhg_KRmD1_b_ReIDnGQNEHpNh9R0FYaFLsAvKbg9U_B9NT1VL7xTmi9Yfle_VkVsyiifPP2--rA7oiVK2sOSPj9_W5BnwEya-grnUhZEjKUCNyR45OosOmFzz6DnJcbtVQnPkcfSzNY7JNr2PonxrPqY0xSxRfqLYedN7m0ofdpS90uMe2u_D6J59Bnl5mx8n6h9kkjPZjmuR-exVeCKSKuYy4vPknYatN4HSsjBdbW7rW1UkYgwda-7PPFmzyWf-cpFyi_NdehnB8bP9BxVQ9RYyiUmFRNzIkwvjijnY7g_BmMa5LwmTEmsPv5fVFPwP0IlSjHGGSB9N3VS3xdiBqq-lrgaptBDqarhRjVT1UAl91RjRVIVVPdiYtTEp-5mslHkmtFxopX_NpsBOCkkhqkrIRtyU7U1dgZY19LqCVg7sSsBeoS0zqzyXInQLQcKNtGkxpnjepBuMOweLsRlfzWn0oZtGtA6f2rYtFjndouUXvm40-w">