[clangd] Log diagnostics if we failed to create a preamble.
authorSam McCall <sam.mccall@gmail.com>
Thu, 1 Dec 2022 10:34:02 +0000 (11:34 +0100)
committerSam McCall <sam.mccall@gmail.com>
Thu, 1 Dec 2022 12:25:15 +0000 (13:25 +0100)
commit00b9cefacbdf0ac764576c52fad6177aea2ed6b8
tree03d739c171dacf15664c88bc312745a2257cbce0
parent1c32ad11bb2ba4592513b3686b25e6c6a2c7f212
[clangd] Log diagnostics if we failed to create a preamble.

Really we want these to be shown to the client, but the path to do so involves
storing them in

Bandaid for https://github.com/clangd/clangd/issues/1408
See https://github.com/clangd/clangd/issues/1399 for motivation

Differential Revision: https://reviews.llvm.org/D139088
clang-tools-extra/clangd/Preamble.cpp