[clang-tidy] Fix crash in --dump-config
authorNathan James <n.james93@hotmail.co.uk>
Sat, 15 Apr 2023 21:58:15 +0000 (22:58 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Sat, 15 Apr 2023 21:58:17 +0000 (22:58 +0100)
commit6128bcd02512eeb0e0bbb8b0a9c4d82f6f9427b2
treece8798863fe0552bd885f049413888eb8f3dd0b9
parentac1b6d46f834239d2a0ea866bd900ce8b9895239
[clang-tidy] Fix crash in --dump-config

Fixes a crash in dump-config when checks emit warnings trying to read the config

Fixes https://github.com/llvm/llvm-project/issues/50876

Co-authored-by: Piotr Zegar <me@piotrzegar.pl>
Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D148436
clang-tools-extra/clang-tidy/ClangTidy.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/infrastructure/dump-config-invalid.cpp [new file with mode: 0644]