Issue 164417
Summary Wrong rule "llvm-header-guard" since v21.0.0
Labels new issue
Assignees
Reporter Spixmaster
    All my header guards raise issues now which never was the case before. See the warning in line 2.

```c++
#ifndef CONSTANT_HPP
#define CONSTANT_HPP //code/includes outside of area guarded by header guard; consider moving it [llvm-header-guard]

#include <string>

namespace constant
{
    //Variables
    /**
     * @var name
     * @brief Programme name.
     */
    extern const std::string name;
    /**
     * @var release
     * @brief Release date of the version.
     */
    extern const std::string release;
    /**
     * @var version
     * @brief Version.
     */
    extern const std::string version;

    //Functions
    /**
     * @brief Creates the programme name in lower case.
     * @return Programme name in lower case.
     */
 std::string name_lower_case();
} //namespace constant

#endif
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to