[clangd] Respect preamble-patch when handling diags
authorKadir Cetinkaya <kadircet@google.com>
Wed, 1 Feb 2023 18:10:03 +0000 (19:10 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 22 Feb 2023 14:54:15 +0000 (15:54 +0100)
commit909cd1f9a8934033a803659da8c54c87013941ef
tree07b2f8bfa1dd3d4727d7f0987f37e420acd6c89f
parent75ae784e8f49cf2425f3bf702a1bbf6c581e721a
[clangd] Respect preamble-patch when handling diags

Depends on D143093

Differential Revision: https://reviews.llvm.org/D143095
clang-tools-extra/clangd/Diagnostics.cpp
clang-tools-extra/clangd/Preamble.cpp
clang-tools-extra/clangd/Preamble.h
clang-tools-extra/clangd/SourceCode.cpp
clang-tools-extra/clangd/SourceCode.h
clang-tools-extra/clangd/unittests/PreambleTests.cpp