First batch of sancov.py rewrite in C++.
Supports "-print" and "-coveredfns" commands.
Details
Diff Detail
Event Timeline
is a test possible here?
lib/sanitizer_common/sancov.cc | ||
---|---|---|
86 | I wonder if you can reuse functionality from clang/Basic/FileManager.h |
lib/sanitizer_common/sancov.cc | ||
---|---|---|
86 | There's a FIXME on FileManager::removeDotPaths saying FIXME: Move this to llvm::sys::path. so I think now is a perfect time to address that FIXME. |
CLs with path utility are out for review:
http://reviews.llvm.org/D14393
http://reviews.llvm.org/D14394
more to follow
lib/sanitizer_common/sancov.cc | ||
---|---|---|
45 | use full words, please, e.g. covered_functions | |
97 | no {} in such code. | |
155 | size_t? | |
157 | <optional> I am not a huge fan of lambda functions when they don't save code or make it more readable. | |
164 | won't it be simpler to insert everything into a set, and they copy into a vector? |
lib/sanitizer_common/sancov.cc | ||
---|---|---|
165 | First, speed is not important here, code simplicity is much more so. Second, I actually think it might be faster in case you need to merge lots of coverage files. | |
219 | Sometimes you may need to pass this further to some scripts and there is no way to un-demangle function names back. |
use full words, please, e.g. covered_functions