First batch of sancov.py rewrite in C++.
Supports "-print" and "-coveredfns" commands.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
is a test possible here?
lib/sanitizer_common/sancov.cc | ||
---|---|---|
86 ↗ | (On Diff #39284) | I wonder if you can reuse functionality from clang/Basic/FileManager.h |
lib/sanitizer_common/sancov.cc | ||
---|---|---|
86 ↗ | (On Diff #39284) | 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 ↗ | (On Diff #39732) | use full words, please, e.g. covered_functions |
96 ↗ | (On Diff #39732) | no {} in such code. |
154 ↗ | (On Diff #39732) | size_t? |
156 ↗ | (On Diff #39732) | <optional> I am not a huge fan of lambda functions when they don't save code or make it more readable. |
163 ↗ | (On Diff #39732) | won't it be simpler to insert everything into a set, and they copy into a vector? |
lib/sanitizer_common/sancov.cc | ||
---|---|---|
164 ↗ | (On Diff #39818) | 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. |
218 ↗ | (On Diff #39818) | Sometimes you may need to pass this further to some scripts and there is no way to un-demangle function names back. |