This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] SATestBuild.py: Refactor and add type annotations
ClosedPublic

Authored by vsavchenko on May 22 2020, 1:25 AM.

Details

Summary

SATest scripts should be more python-style than they are now.
This includes better architecture, type annotations, naming
convesions, and up-to-date language features. This commit starts
with two scripts SATestBuild and SATestAdd.

Diff Detail

Event Timeline

vsavchenko created this revision.May 22 2020, 1:25 AM

Fix update diffs

NoQ accepted this revision.May 22 2020, 3:07 AM

Nice!

I guess next time it'd be easier to review if you split up style changes from structural changes.

clang/utils/analyzer/SATestBuild.py
304–305

What's this idiom? Like, can you explain why do we have to do this?

312

Something's missing in this sentence.

This revision is now accepted and ready to land.May 22 2020, 3:07 AM

Fix code review comments

vsavchenko marked 2 inline comments as done.May 22 2020, 3:21 AM
This revision was automatically updated to reflect the committed changes.