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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/Generators.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-05-30 13:43:14 +0200
committerMartin Hořeňovský2021-05-30 13:59:47 +0200
commit8d6a1c27ef0ca492582d7ddab3898453cc48ff34 (patch)
tree6dcf5f9f1fd9211b2fcbf21eb8ac3827e71d4c07 /tests/SelfTest/UsageTests/Generators.tests.cpp
parent41ad0fda11d0898ce3aaeee9db4e7bc16eec5051 (diff)
downloadcatch3-8d6a1c27ef0ca492582d7ddab3898453cc48ff34.tar.gz
Use StringRef literals where possible in XML using reporters
This let's us avoid running `strlen` at runtime to convert the plain string literals to `StringRef`s, by guaranteeing that we instead have the size available after compilation. In optimized builds the performance improvement should be even greater, as the `StringRef` UDL and the related constructor are both `constexpr`, and thus can be baked completely during compilation.
Diffstat (limited to 'tests/SelfTest/UsageTests/Generators.tests.cpp')
0 files changed, 0 insertions, 0 deletions