Issue 53157
Summary clang analyzer: False positive
Labels new issue
Assignees
Reporter reddwarf69
    ```
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <string>
#include <vector>

void test() {
  auto string = std::string{"a b"};
  auto string_parts = std::vector<std::string>();
  boost::split(string_parts, string, boost::is_any_of(" "));
}
```
generates a false clang-analyzer-cplusplus.NewDeleteLeaks

https://godbolt.org/z/MdETe34eT
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to