Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Replace assignment with constructor call in initialization #24864

Open Quuxplusone opened 9 years ago

Quuxplusone commented 9 years ago
Bugzilla Link PR24865
Status NEW
Importance P enhancement
Reported by Eugene Zelenko (eugene.zelenko@gmail.com)
Reported on 2015-09-17 13:54:21 -0700
Last modified on 2016-02-26 12:06:27 -0800
Version unspecified
Hardware All All
CC alexfh@google.com, djasper@google.com, klimek@google.com
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also

Will be good idea to have readability check with will replace assignment with constructor call in initialization.

For example:

std::string String = std::string( "value" );

Quuxplusone commented 9 years ago

Sometimes default constuctor could be used in situations like:

std::string String = "";

Quuxplusone commented 8 years ago

Implemented for strings in r261939.