[clang-tools-extra] [clang-doc][nfc] Avoid constructing SmallString in ToString method (PR #96921)

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 1 01:22:42 PDT 2024


petrhosek wrote:

I'd use `std::string_view` as a return value instead of `const char *` as a more idiomatic C++ in which case you don't need to rename the method to `c_str()`.

https://github.com/llvm/llvm-project/pull/96921


More information about the cfe-commits mailing list