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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy encounteres "error: unknown target CPU 'cortex-a76.cortex-a55' [clang-diagnostic-error]"
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          nick-potenski
      </td>
    </tr>
</table>

<pre>
    While trying to scan files in a cross-compiled project with clang-tidy version 20, all of my source files encounter the following error:

```
Error while processing <Source file name redacted>.
error: unsupported argument 'cortex-a76.cortex-a55' to option '-mcpu=' [clang-diagnostic-error]
note: valid target CPU values are: a64fx, ampere1, ampere1a, ampere1b, apple-a10, apple-a11, apple-a12, apple-a13, apple-a14, apple-a15, apple-a16, apple-a17, apple-a7, apple-a8, apple-a9, apple-m1, apple-m2, apple-m3, apple-m4, apple-s4, apple-s5, carmel, cobalt-100, cortex-a34, cortex-a35, cortex-a510, cortex-a520, cortex-a520ae, cortex-a53, cortex-a55, cortex-a57, cortex-a65, cortex-a65ae, cortex-a710, cortex-a715, cortex-a72, cortex-a720, cortex-a720ae, cortex-a725, cortex-a73, cortex-a75, cortex-a76, cortex-a76ae, cortex-a77, cortex-a78, cortex-a78ae, cortex-a78c, cortex-r82, cortex-r82ae, cortex-x1, cortex-x1c, cortex-x2, cortex-x3, cortex-x4, cortex-x925, cyclone, exynos-m3, exynos-m4, exynos-m5, falkor, fujitsu-monaka, generic, grace, kryo, neoverse-512tvb, neoverse-e1, neoverse-n1, neoverse-n2, neoverse-n3, neoverse-v1, neoverse-v2, neoverse-v3, neoverse-v3ae, oryon-1, saphira, thunderx, thunderx2t99, thunderx3t110, thunderxt81, thunderxt83, thunderxt88, tsv110
error: unsupported argument 'cortex-a76.cortex-a55' to option '-mcpu=' [clang-diagnostic-error]
``` 

The project is compiled with gcc version 11.5.0 and the `cortex-a76.cortex-a55` seems to be a valid cpu option for it.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzElU-PrCgQwD8NfSF2AEXtg4d5M2_Om-xu9oxYrbxGMIA93d9-I_1noLN5101MrB_UX0op4b0aDUCH-A_EP3ZiDZN1nVHyVCw2gPEntevtcO3-mZQGHNxVmREHi70UBh-VBo-VwQJLZ70vpJ0XpWHAi7O_QAb8pcKEpRZmLIIarvgMzitrMCOIvWOhNbZHPF-xt6uTcHcIRtrVBHA4TICPVmv7tYUF56xD5Rsi8anJ_SFvP7cd_BVzXJyV4P1mgMr3P78dYyNmwA4GIQMMqPy5R-Tt4ROvxq_LYl2AAQs3rjOYgBFr5LZ0KURT7x8i54g12yHYJWzFINYUs1xWVH5sG4j_uFU8KDEa64OSxS0M_0DkzdgAW8Cz0GrAQbgRAn7_4-9tYQWPhYvboq6Ol3hI8wIOaCKKRO6jvCwaCkFJCjQFlkKZQpUCT6FOoUkgldtEPnzLcxJ9ToLPSew5Ce1TOWYhhZtBR8n2QoeCEnKjWxPKKiOeEqeZKmevKCBbKDPKXTUp1Tyn3E-Th21opt2wnMgLvvhiuXGWYpPv1Tm9OMoKaNqcXnRbmaBrWU6Z8oVmkBpeUrtLmvklbdrlcK_xKrU10Tdcrsb6-1fygCqFaHEU-mRdlNZfKvi1mK0Rp_hfjGDAqZjO6ISMbk_uare3AbtdQFBwysK5z5Zuf9gTzQuyHMsMz7nyOVc-vyiXt3O07mpNES29WCblYvphWs0A7pLKLBwOKZeB3r60x0JoaY5ljrHpwZ83s__jynte1fh2df81wXNCKI-fUyNOi1HK55igdM_3BAszxFGAavLfudUEe4DZbxn2gMX9cpXL-kj4aB1WYb8bunI4lAexg442vDqwmtblbup6eqwq2pbtgdQcJGV9Q0XPiZBiaCvCdqpjhHHSUko5O7ByXw4CJGlJVTW8h6ZFFYFZKL3X-jzvrRt3yvsVOspLUlY7LXrQPg5axr4nImJsG7yu26yKfh09qohWPvhvP0EFDV0yRZ8DEjxGjCUNPRn7ZdKh8rt2_rZrjO1Wp7sphMVvM5d9IvY5qjCt_V7aGbHPLb_7q7h3E7HPWLRH7PNe97lj_wYAAP__ACezOg">