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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy]llvm-header-guard false positive on #pragma once header
        </td>
    </tr>

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

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

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

<pre>
    a.hpp
```cpp
#pragma once
int i = 0;
```

test.cpp
```
#include "a.hpp"
```
Result
```bash
$ clang-tidy -checks=-*,llvm-header-guard test.cpp -header-filter=.*
a.hpp:1:1: warning: header is missing header guard [llvm-header-guard]
#pragma once
^
```

I think this check may give one inaccurate note here. Is it necessary to make changes to this situation? I want some suggestion about revising ```llvm-header-guard```.  Do not report this bug or give another note?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U8GOozoQ_BpzaQU5Nk7CgUPm8SKN3u39gTGN8Q7YyG0yyn79Ckhmdie7K4HB3VS5ypQ1kbMesWLqhak603PqQ6zG77f_XNaE9lbpvJ8mxmvGz-zAt8t8VIScorajhuANbjXnEzhgsgbO5MsX5H26jgkp5eaJ_IPZeTPMLQITYhMhxG8__R9pHtKXVqOpfzAVYAbt7S659gY706N5IybrHRNnJv4Zhuu461G3GHd21rGFhzB4lDs3JIxM1vkCWVk3RfK8v9_wrqN33i6vGwocweiInLePykbP1MvTmkzVf95Rpv79yza-Quqdf1tGgtUcjPoG1l0RgkdwXhszR50QfEgIPUbM4ZXAJfBokEjHG6QAo35DML32FmmZr4Tk0qyTC57JC7zCu_YJKIwINFuLtHRAN2FOEPHqVrMfKp9dPjo5QB0WORBxCjFtazWzhRA35dqH1GNcJTN52axmbSXbUpY6w2p_FCepyoLzrK8O7eHAjyXnQp1K1XHRGamPXXcS6nRQ_JS5SnBR7Dk_cVmUqsyN5vpwLPddUwhzOApWcBy1G_JFdB6izRzRjNV-vy-OKht0gwOtp0SIzzQtkVR1FqvVajNbYgUfHCX65EkuDev5-gmm6ufUdXoghCmQS9uvg1-zcA9RNseh6lOaiMkzExcmLtalfm5yE0YmLgvx_bGbYviGJjFxWc0QE5e7n2slfgQAAP__bPA4jQ">