Zinovy Nis
Zinovy Nis
So I have 2 things to be done: - rename the check - add options for custom string types (most probably in the next PR)
What's done: - renamed to `modernize-use-string-view` - added a lot of tests and some code had been fixed due to that - simplified some conditions - minor cleanups. Thanks a...
Here's what I've got on the LLVM project trunk [use-string-view.patch](https://github.com/user-attachments/files/24273974/use-string-view.patch)
> ```diff > getArcana > ``` Thanks. Looks like overloaded functions? So let's ignore overloaded functions as I do for virtual/override?
> ```c++ > std::string getArcana(const TemplateName &NNS) { > return std::string{""}; // no warning, explicit ctor call > return std::string(""); // no warning > } > ``` It works even...
> > > ```c++ > > > std::string getArcana(const TemplateName &NNS) { > > > return std::string{""}; // no warning, explicit ctor call > > > return std::string(""); // no...
Any other comments? If no, I'd like to merge it tomorrow.