Extend readability-redundant-string-init to check for assignment of temporary strings #27130
Labels
bugzilla
Issues migrated from bugzilla
clang-tidy
enhancement
Improving things as opposed to bug fixing, e.g. new or missing feature
Extended Description
It'll be great to extend readability-redundant-string-init to report next situations:
std::string S1 = std::string( "Value" );
std::string S2 = std::string( "" );
const char* CString;
std::string S3 = std::string( CString );
I found such example in my code base which may be not unique :-)
The text was updated successfully, but these errors were encountered: