[clang-tools-extra] [clang-tidy] Enhance container-data-pointer-check to suggest `c_str` for consts (PR #190590)
Daniil Dudkin via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 8 13:49:04 PDT 2026
https://github.com/unterumarmung commented:
Should this also check for implicit casts?
like
```cpp
[](std::string s) -> const char* { return &s[0]; }
```
https://github.com/llvm/llvm-project/pull/190590
More information about the cfe-commits
mailing list