Get rid of lots of temporary allocations in KDevelop::formatComment.

Authored by mwolff.

Description

Get rid of lots of temporary allocations in KDevelop::formatComment.

Most notably, we no longer allocate the string literals again
and again and again and again...

This showed up in some heaptrack files of KDevelop, most notably
when parsing the PHP function file with its tons of comments. There,
we can get rid of ~600000 allocations thanks to this patch.

Details

Committed
mwolffJan 9 2016, 12:30 AM
Parents
R33:fa2f5f9ccb60: OutputModel: Allow to set IFilterStrategy pointer
Branches
Unknown
Tags
Unknown