diff options
| author | Martin Hořeňovský | 2023-12-23 16:06:30 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-12-26 14:57:29 +0100 |
| commit | 822c44a20395c6194d527110d59f7513a55b885c (patch) | |
| tree | 966a81f78d7f9c631c583de8ec13bb4d930f16df /src/catch2/catch_test_spec.cpp | |
| parent | 2295d2c8ccc0dba4b35adb95ef8946a05996df87 (diff) | |
| download | catch3-822c44a20395c6194d527110d59f7513a55b885c.tar.gz | |
Cleanup help string construction in Clara
* Clara::Opt::getHelpColumns returns single item
It could never return multiple items, but for some reason it
was wrapping that single item in a vector.
* Use ReusableStringStream in Clara
* Reserve HelpColumns ahead of time
* Use StringRef for descriptions in HelpColumn type
The combination of these changes ends up removing about 7% (~200)
of allocations when Catch2 has to prepare output for `-h`.
Diffstat (limited to 'src/catch2/catch_test_spec.cpp')
0 files changed, 0 insertions, 0 deletions