Use InitLLVM in clang-tidy
authorRui Ueyama <ruiu@google.com>
Thu, 28 Nov 2019 04:50:35 +0000 (13:50 +0900)
committerRui Ueyama <ruiu@google.com>
Thu, 28 Nov 2019 04:50:35 +0000 (13:50 +0900)
commita7acba29c19ac67c77ed282ec9432602ae21268d
tree155e4f94460664a0f9a7f2ce32740b5c77f0c00f
parent1727c4f1a2c1fcdd487eee67edf64828076f5399
Use InitLLVM in clang-tidy

Update clang-tidy to use InitLLVM, like several other llvm tools that
were previously updated. On Windows, this allows clang-tidy to operate
on arguments containing characters which cannot be represented in the
system's ANSI code page such as filenames with Unicode characters.

Fixes bugzilla bug 43751.

Patch by Tristan Labelle.

Differential Revision: https://reviews.llvm.org/D70694
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp