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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] method for NOLINT whole file
        </td>
    </tr>

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

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

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

<pre>
    https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics mentions that:

> The NOLINT comment instructs clang-tidy to ignore warnings on the same line (it doesn’t apply to a function, a block of code or any other language construct; it applies to the line of code it is on).

For implementing assert.h in llvm-libc, you literally do not want a header guard. To suppress `llvm-header-guard`, we need to add `NOLINT(llvm-header-guard)` as the very first line to this header, BEFORE the license comment, which is also against the style guide.

It would be nice if we had another method for silence this clang-tidy diagnostic somehow within this file.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkU8uO47YS_RpqU7AhU35ICy1u324DAwQzQNA_UCJLYmUo0mBR4_jvA8p22kk29kJV51U8KMJTIOrV4U0d3itcsoupD2x-WhJcfGBKUg3R3nqX80VU8z-lz0qfjccwbb3_NW9jmpQ-05854fPDJrO9rYONLJdLIhEO02YJloQT2Y1lnEKUzEZgppA5BoHsMBeC-l3Vz9_mAz4dwfcfv337_gkmzmUaOEhOi8kCX3SQI_AUYiK4YgocJoEYIDsCwZnAcyBQuuUMNpIE9aFVW6uuy4CXi1_3EcYlmKJG6f8DwuCj-QlxBBMtQUyA4QYxO0pQeBecCEx8iFHNG_AdjEkKXOFeaZ8InIGLKqW77avNc0zA88XTmkWYAEUo5a0DDlBC3ngeTNF0iwt4zpTQ-xvYCCFmuGLIgOAILSWYFkx2C58RntmDOtYryn1is06oY10ArwSByK7urS2T96yVbv-7ojt1rAFldfaL0g1GTpLvJlfDLA8ZBfvt4_zj949HDIaC0POCK7Nj40oe6CUCTliuer9XvnmCaWFL_4jpW4ZrXLyFgSCwIeCx6HdoAcP9LDNlFy2MMYGwp2DoLurlnXy9PZA4k4tXuHJ2HO6TI3vaVrZvbNd0WFG_O9Xd7nDY7brK9YNtTth1qAdzsEiIY0tam2NHbXs6HU8V97rW-1rrVu92bdNtT0Rje7LH_WmsTdvu1b6mGdn_XZ6KRRbq26ZpusrjQF7WPmr92iVd-pn69SbDMona154lyxdM5uzXJr-sHd5fE3m06Oqip9VntST_r2JPnN0ybE2clT4X7Mff5pLiH2Sy0udVryh9XiX_FQAA__-sJ2_F">