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 | ||
|---|---|---|
| 87 | I wonder if you can reuse functionality from clang/Basic/FileManager.h | |
| lib/sanitizer_common/sancov.cc | ||
|---|---|---|
| 87 | 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 | ||
|---|---|---|
| 44 | use full words, please, e.g. covered_functions | |
| 96 | no {} in such code. | |
| 154 | size_t? | |
| 156 | <optional> I am not a huge fan of lambda functions when they don't save code or make it more readable. | |
| 163 | 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