This is an archive of the discontinued LLVM Phabricator instance.

sancov test suite
ClosedPublic

Authored by aizatsky on Nov 11 2015, 2:14 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

aizatsky updated this revision to Diff 39974.Nov 11 2015, 2:14 PM
aizatsky retitled this revision from to sancov test suite.
aizatsky updated this object.
aizatsky updated this revision to Diff 39975.Nov 11 2015, 2:22 PM

cleanup & reformat

aizatsky added a subscriber: llvm-commits.
krasin added inline comments.Nov 11 2015, 2:45 PM
test/CMakeLists.txt
23 ↗(On Diff #39975)

What was the logic of this reordering? Did you try to put them in the alphabet order? If yes, I think that capital letters should go before regular, i.e. Z < a.

test/tools/sancov/Inputs/test.cpp
13 ↗(On Diff #39975)

What is the point of returning the str argument? Why do you return it as the result?

aizatsky updated this revision to Diff 39979.Nov 11 2015, 2:51 PM
aizatsky marked an inline comment as done.

review.

ptal

test/tools/sancov/Inputs/test.cpp
13 ↗(On Diff #39975)

to have a complicated mangled name.

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

Looks fine, but please check this:

tools/sancov/sancov.cc
230 ↗(On Diff #39979)

Shouldn't it be

if (FileName.size() > FilePrefix.size())

?

This revision is now accepted and ready to land.Nov 12 2015, 11:03 AM
aizatsky added inline comments.Nov 12 2015, 11:04 AM
tools/sancov/sancov.cc
230 ↗(On Diff #39979)

Nice catch. I guess I need a multi-file test to properly check it. Hold on.

aizatsky updated this revision to Diff 40074.Nov 12 2015, 11:29 AM
aizatsky edited edge metadata.

multiple files test-case.

This revision was automatically updated to reflect the committed changes.