]> granicus.if.org Git - clang/commit
[Analyzer] Refactor analyzer testing scripts.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 22 Sep 2017 01:41:16 +0000 (01:41 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Fri, 22 Sep 2017 01:41:16 +0000 (01:41 +0000)
commitd578df7f788a01e207f4373e05ab4d6e05a595e4
tree37c6afa9cb3dd80ed4aadec97a36f4363999d7a3
parent1bdee855b52369afe479fba61ce6af926d427c61
[Analyzer] Refactor analyzer testing scripts.

 - Exporting needed function for future reuse.
 - Idiomatic python: using with `file as f` instead of `try/finally`.
 - Fixing some indentation issues.
 - No need to reinvent python `multiprocessing.getCPUCount()`
 - Removing a function parameter which is always the same under all invocations.
 - Adding some docstrings.

Differential Revision: https://reviews.llvm.org/D38156

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313949 91177308-0d34-0410-b5e6-96231b3b80d8
utils/analyzer/CmpRuns.py
utils/analyzer/SATestAdd.py
utils/analyzer/SATestBuild.py