Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_wildcard_pattern.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-18 00:02:46 +0200
committerMartin Hořeňovský2021-05-18 23:15:22 +0200
commit9137e591fa7d7fee2e8c1d3bfeb55068deb2c665 (patch)
tree983f925118ed17cffc9cc35d553bf9dae2814a11 /src/catch2/internal/catch_wildcard_pattern.cpp
parentf50a06affa77d4dbe0c94f684b3a6dfae04c2ebe (diff)
downloadcatch3-9137e591fa7d7fee2e8c1d3bfeb55068deb2c665.tar.gz
Cleanup and optimize stringifying of string-like types
More specifically, made the actual implementation of string-like type handling take argument as `Catch::StringRef`, instead of taking `std::string const&`. This means that string-like types that are not `std::string` no longer need to pay for an extra construction of `std::string` (including the potential allocation), before they can be stringified. The actual string stringification routine is now also better about reserving sufficient space.
Diffstat (limited to 'src/catch2/internal/catch_wildcard_pattern.cpp')
0 files changed, 0 insertions, 0 deletions