[analyzer] decode() a bytes object to make Python3 happy
authorJeremy Morse <jeremy.morse@sony.com>
Wed, 4 Mar 2020 17:08:17 +0000 (17:08 +0000)
committerJeremy Morse <jeremy.morse@sony.com>
Wed, 4 Mar 2020 17:12:48 +0000 (17:12 +0000)
commitd4f9675b5509e26573058318682a9ed5d7aaf320
treea70a14e2e7ccc5047fde4f9a467f8e6d909c17f3
parent06de4264260d24761e3d1e6ab815db0370b1d314
[analyzer] decode() a bytes object to make Python3 happy

The output of subprocess.check_output is decode()'d through the rest of
this python program, but one appears to have been missed for the output
of the call to "clang -print-file-name=include".

On Windows, with Python 3.6, this leads to the 'args' array being a mix of
bytes and strings, which causes exceptions later down the line.

I can't easily test with python2 on Windows, but python2 on Ubuntu 18.04
was happy with this change.
clang/test/Analysis/check-analyzer-fixit.py