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

    <tr>
        <th>Summary</th>
        <td>
            declare some header file as common header for c and cpp
        </td>
    </tr>

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

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

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

<pre>
    I have created some common header file for c and cpp. But when I run clang-tidy for my cpp file, it throw lots of error for example use-using, c-style cast, etc.
Is there any mechanism to identifier this header file and forbidden some cpp check when running clang-tidy?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckd1u3CAQhZ8G34zWwti7Xl_4ItnI6j4GP2NDi8GFIem-fWUnUje9QkiH4XzzyZzdEhBHdn5l57dKFrIxjT8wpZt0fOB9paJ5jHew8h1BJ5SEBnJcEXRc1xjAojSYYHYeYY4JNMhgQG9bDa-F4MNigDukEkB7GZYTOfM4gutjTx0PmbiBIyCb4gf4SBniDJhSTEcS_8h18wgl46lkF5Y9r0-ZHh5By0z7HUnXjL8x_nLPQBYTggwPWFFbGVxegSI4g4Hc7DABWZe_dd9bzzEpZwyGL8JtA21R__qkSCUEF5YnDtZOlRlbM7SDrHBsej5chkvX88qOapa6OZ9xVpcer0INhg-dVLo1Qz_MSlZuFFx0vOUX3nZNw2vZcd6LRnVcnPncNqzjuErna-_f1zqmpXI5FxyvXcOvlZcKfT7ECfG7YCYXAxOCiRsT4qmjELvZNO5TTqosmXXcu0z531xy5HE0qL1M-Mn-bTX5f9nPnquS_GiJtszaFyYmJqbFkS2q1nFlYtp_-TpOW4o_URMT04GSmZgOmr8BAAD___XU2E4">