Issue 175379
Summary [libcxx] std::filesystem::path::c_str() and related methods should have [[clang::lifetimebound]] attribute
Labels clang, libc++
Assignees
Reporter ddkilzer
    `std::filesystem::path::c_str()` and related methods should have `[[clang::lifetimebound]]` attribute since they return pointers to inner objects that have the same lifetime as the `path` object.

- `std::filesystem::path::c_str()`
- `std::filesystem::path::native()`
- `std::filesystem::path::operator string_type()`

rdar://167912055

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

Reply via email to