https://github.com/philsquared/Catch
Revision c9de7dd12d2971c63f9d32ce5459eb98f2fec13d authored by Martin Hořeňovský on 23 July 2018, 18:46:36 UTC, committed by Martin Hořeňovský on 23 July 2018, 18:46:42 UTC
In case of 2 instances of SourceLineInfo constructed in the same
file, they will have the same `file` pointer (even at O0). Thus, we
can check if they are equal before calling potentially pointless
`strcmp`.
1 parent 52cbb50
History
Tip revision: c9de7dd12d2971c63f9d32ce5459eb98f2fec13d authored by Martin Hořeňovský on 23 July 2018, 18:46:36 UTC
Optimize SourceLineInfo::operator< with short-circuiting
Tip revision: c9de7dd
File Mode Size
.github
CMake
artwork
contrib
docs
examples
include
misc
projects
scripts
single_include
test_package
third_party
.gitattributes -rw-r--r-- 613 bytes
.gitignore -rw-r--r-- 478 bytes
.travis.yml -rw-r--r-- 6.8 KB
CMakeLists.txt -rw-r--r-- 4.1 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE.txt -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 2.2 KB
appveyor.yml -rw-r--r-- 2.6 KB
codecov.yml -rw-r--r-- 400 bytes
conanfile.py -rw-r--r-- 1008 bytes

README.md

back to top