Issue 180155
Summary bug: `llvm-header-guard` emits wrong warning in case of `-std=c++20`
Labels new issue
Assignees
Reporter thorsten-klein
    Header File `include/test.hpp`:
```
#ifndef TEST_HPP
#define TEST_HPP
#endif // TEST_HPP
```

Run:
`clang-tidy '--checks=-*,llvm-header-guard' include/test.hpp -- -std=c++20`

Emits warning:
```
1 warning generated.
/home/user/work/include/test.hpp:2:9: warning: code/includes outside of area guarded by header guard; consider moving it [llvm-header-guard]
    2 | #define TEST_HPP
      |   
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to