This is an archive of the discontinued LLVM Phabricator instance.

sancov tool in c++
ClosedPublic

Authored by aizatsky on Nov 11 2015, 10:58 AM.

Details

Summary

First batch of sancov.py rewrite in c++.
Supports "-print" and "-coveredfns" commands.

Followup to http://reviews.llvm.org/D14356 in a better location.

Diff Detail

Repository
rL LLVM

Event Timeline

aizatsky updated this revision to Diff 39947.Nov 11 2015, 10:58 AM
aizatsky retitled this revision from to sancov tool in C++.
aizatsky updated this object.
aizatsky retitled this revision from sancov tool in C++ to sancov tool in c++.Nov 11 2015, 11:00 AM
aizatsky updated this object.
aizatsky added reviewers: kcc, krasin, samsonov.
aizatsky updated this object.
aizatsky added a subscriber: llvm-commits.
kcc edited edge metadata.Nov 11 2015, 11:02 AM

LGTM, but let Alexey have a look too.
I expect docs and tests in the following commits.

samsonov accepted this revision.Nov 11 2015, 11:13 AM
samsonov edited edge metadata.

Make sure "ninja sancov" works as expected, and "ninja all" builds the tool as well. Also, I presume you did run clang-format over the entire source. You might need to add Makefile support for autoconf build (just cargo-cult from another tools) - true, it's being deprecated at the moment, but we might need to keep building sancov until 3.8 release - in order to run the test-suite.

LGTM.

This revision is now accepted and ready to land.Nov 11 2015, 11:13 AM
aizatsky updated this revision to Diff 39961.Nov 11 2015, 12:49 PM
aizatsky edited edge metadata.

makefile, review

This revision was automatically updated to reflect the committed changes.

Make sure "ninja sancov" works as expected, and "ninja all" builds the tool as well.

ack.

Also, I presume you did run clang-format over the entire source.

yes

You might need to add Makefile support for autoconf build (just cargo-cult from another tools) - true, it's being deprecated at the moment, but we might need to keep building sancov until 3.8 release - in order to run the test-suite.

done