summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-view/share/ScanView.py
Commit message (Collapse)AuthorAgeFilesLines
* [clang-scan-view] Force utf-8 when handling report (python2 only)Serge Guelton2019-07-161-2/+2
| | | | | | | | Original patch by random human <random.bored.human@gmail.com> Differential Revision: https://reviews.llvm.org/D64129 llvm-svn: 366194
* Portable Python script across Python versionSerge Guelton2019-01-031-5/+11
| | | | | | | | StringIO is obsoleted in Python3, replaced by io.BytesIO or io.StringIO depending on the use. Differential Revision: https://reviews.llvm.org/D55196 llvm-svn: 350318
* Portable Python script across Python versionSerge Guelton2018-12-191-5/+10
| | | | | | | | | urllib2 as been renamed into urllib and the library layout has changed. Workaround that in a consistent manner. Differential Revision: https://reviews.llvm.org/D55199 llvm-svn: 349627
* Portable Python script across Python versionSerge Guelton2018-12-181-1/+1
| | | | | | | | | | | In Python3, dict.items, dict.keys, dict.values, zip, map and filter no longer return lists, they create generator instead. The portability patch consists in forcing an extra `list` call if the result is actually used as a list. `map` are replaced by list comprehension and `filter` by filtered list comprehension. Differential Revision: https://reviews.llvm.org/D55197 llvm-svn: 349501
* Portable Python script across Python versionSerge Guelton2018-12-181-15/+16
| | | | | | | | Using from __future__ import print_function it is possible to have a compatible behavior of `print(...)` across Python version. Differential Revision: https://reviews.llvm.org/D55213 llvm-svn: 349454
* Portable Python script across Python versionSerge Guelton2018-12-181-2/+5
| | | | | | | | ConfigParser module has been renamed as configparser in Python3 Differential Revision: https://reviews.llvm.org/D55200 llvm-svn: 349449
* Portable Python script across Python versionSerge Guelton2018-12-031-9/+12
| | | | | | | | Workaround naming and hierarchy changes in BaseHTTPServer and SimpleHTTPServer module. Differential Revision: https://reviews.llvm.org/D55203 llvm-svn: 348184
* Portable Python script across Python versionSerge Guelton2018-12-031-1/+1
| | | | | | | | Python2 supports both backticks and `repr` to access the __repr__ slot. Python3 only supports `repr`. Differential Revision: https://reviews.llvm.org/D55201 llvm-svn: 348182
* Portable Python script across versionSerge Guelton2018-12-031-1/+1
| | | | | | | | | Have all classes derive from object: that's implicitly the default in Python3, it needs to be done explicilty in Python2. Differential Revision: https://reviews.llvm.org/D55121 llvm-svn: 348127
* Portable Python script across Python versionSerge Guelton2018-12-031-9/+9
| | | | | | | | | | | | | | Python2 supports the two following equivalent construct raise ExceptionType, exception_value and raise ExceptionType(exception_value) Only the later is supported by Python3. Differential Revision: https://reviews.llvm.org/D55195 llvm-svn: 348126
* [scan-build] Move non user-facing utilities to shareJonathan Roelofs2015-11-131-0/+767
llvm-svn: 253068
OpenPOWER on IntegriCloud