Issue 132272
Summary [clang-include-cleaner] unnecessary include suggested when including fully contained header
Labels false-positive, clang-include-cleaner
Assignees
Reporter firewave
    test.h
```cpp
#include <string>

struct S
{
    const std::string& str() const;
    std::string mStr;
};
```

test.cpp
```cpp
#include "test.h"

const std::string& S::str() const
{
    return mStr;
}
```

```
$ clang-include-cleaner --print=changes test.cpp
[...]
+ <string>
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to