This is an archive of the discontinued LLVM Phabricator instance.

[Analyzer] Static analyzer script for updating reference results
ClosedPublic

Authored by george.karpenkov on Sep 21 2017, 3:09 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

dcoughlin accepted this revision.Sep 21 2017, 3:36 PM
dcoughlin added a reviewer: NoQ.

Other than the quoting issues mentioned inline, this looks good.

utils/analyzer/SATestUpdateDiffs.py
7 ↗(On Diff #116278)

I'm not a super fan of using this kind of abbreviation because it makes it harder to figure out where the stuff being called is defined. Are you adamant about it?

49 ↗(On Diff #116278)

I'm pretty terrified about rm -f without quotation of the arguments. Is there a safer API? At a minimum, can we at at least quote the arguments here? (And for the 'cp' above?)

This revision is now accepted and ready to land.Sep 21 2017, 3:36 PM

Applying review comments.

george.karpenkov marked an inline comment as done.Sep 21 2017, 3:43 PM
george.karpenkov added inline comments.
utils/analyzer/SATestUpdateDiffs.py
7 ↗(On Diff #116278)

No. We can change it.

49 ↗(On Diff #116278)

Right, depends how far we want to go.
For cp above let's just quote it.
For rm the safest thing would be to walk all directories inside, and remove diffs.txt in each, but that's quite a bit more code.

george.karpenkov marked an inline comment as done.Sep 21 2017, 4:00 PM

@dcoughlin note that this can not land without https://reviews.llvm.org/D38156

This revision was automatically updated to reflect the committed changes.