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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Check request: portability-avoid-pragma-once
        </td>
    </tr>

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

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

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

<pre>
    The check [prefer-pragma-once](https://github.com/llvm/llvm-project/issues/26800) already suggested, also we can add the check for opposite purpose. The check might be useful for those who use a compiler which not support the pragma. The check must be disabled by default
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyckkmOHCEQRU9DbkJVIoOcasGiB9UJfAGGyASbSjBDt8qntyo9dHvrFRKCH_Hf_6oUv-1Eko3PbHztVKsuZmlp_xEzct7paO_yiyMwjsw3YONzyrRSPqWstps6xd0QG18ZLq7WVJh4YnhleN18dU2fTbwxvIbw9uc4pRy_kqkMr76URoXhFaeFc4YXUCGTsncobduoVLIMX0CFEuGdwKgdlLVQ_y6zxgwxpVh8JUgtp1joDB_L3vzmKmiCVmht4XhfXSwE7y4-LkGBibfkA2V4d9442GOF0lKKuR6Dfrn8R7SVQ9P6onQgC_oOllbVQu2sFPYiLqoj2c_DzJd-XHjnpBYklnWZBAkiOxuNk-7ngZt5uCAXQ-clchz52CNynJCf9TyvVovR9HrmfEI2cLopH84PhueYt-6gJ3txmfqlC0pTKEeIiCaofTtVb-8M8RFqlgd53bbCBh58qeVDp_oajvg_fRtf4eUwm-l7o1KZeIIHEqV98PV-Um_R288N6FoO8v8L8NvFm8SfAQAA___kMNl4">