-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillacheck-requestRequest for a new check in clang-tidyRequest for a new check in clang-tidyclang-tidy
Description
| Bugzilla Link | 26551 |
| Version | unspecified |
| OS | All |
| CC | @EugeneZelenko |
Extended Description
Add a performance check that looks for string literal insertion into an output stream where the string literal is a single character.
Replace the string literal insertion with a character literal insertion.
Special cases to consider:
str << "'"; => str << ''';
str << """ => str << '"';
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillacheck-requestRequest for a new check in clang-tidyRequest for a new check in clang-tidyclang-tidy