[clangd] #undef macros inside preamble patch
authorKadir Cetinkaya <kadircet@google.com>
Wed, 1 Feb 2023 17:37:46 +0000 (18:37 +0100)
committerKadir Cetinkaya <kadircet@google.com>
Wed, 22 Feb 2023 14:54:15 +0000 (15:54 +0100)
commit75ae784e8f49cf2425f3bf702a1bbf6c581e721a
treec47a94ea7a68dbb3a63ce20b3c339dbd0f3ff446
parent7177a237b68f32befcecedba78a875f1bbc4a609
[clangd] #undef macros inside preamble patch

That way we can stop generating false macro redefinition diagnostics.

Depends on D142890

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