[clang-tidy] Use a MemoryBufferRef when parsing configuration files.
authorNathan James <n.james93@hotmail.co.uk>
Thu, 10 Dec 2020 14:52:44 +0000 (14:52 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Thu, 10 Dec 2020 14:52:45 +0000 (14:52 +0000)
commit34d2688a50f23b4b15bdeab054e28e033ece9363
treebd5800c36bb57b8d4b065b272c9adea17a12b352
parent7c9afe9183ee5b2b649bfa34da2a83eca886a924
[clang-tidy] Use a MemoryBufferRef when parsing configuration files.

Using a MemoryBufferRef, If there is an error parsing, we can point the user to the location of the file.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D93024
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.h
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/clangd/TidyProvider.cpp
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp