[clang-tidy] Add a diagnostic callback to parseConfiguration
authorNathan James <n.james93@hotmail.co.uk>
Thu, 17 Dec 2020 00:24:58 +0000 (00:24 +0000)
committerNathan James <n.james93@hotmail.co.uk>
Thu, 17 Dec 2020 00:24:58 +0000 (00:24 +0000)
commitddffcdf0a6603747a6734dcf23dfe81476b5523c
treece9deeb02e746bfd8f8f9819513ee678bb71f408
parentb17a18156368549d090496bfe215b17a3f8a1f93
[clang-tidy] Add a diagnostic callback to parseConfiguration

Currently errors detected when parsing the YAML for .clang-tidy files are always printed to errs.
For clang-tidy binary workflows this usually isn't an issue, but using clang-tidy as a library for integrations may want to handle displaying those errors in their own specific way.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D92920
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.h
clang-tools-extra/unittests/clang-tidy/CMakeLists.txt
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp