[clangd] Replace the hacky include-cleaner macro-reference implementation.
authorHaojian Wu <hokein.wu@gmail.com>
Fri, 23 Jun 2023 12:07:06 +0000 (14:07 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Fri, 23 Jun 2023 12:08:55 +0000 (14:08 +0200)
commit6585dd3b83738789dff5ca82008efdf84c9b922c
tree42e15397097b34e6cb18617fe1cc05b5dc76c23a
parent407ff50ecad8ecbbba66bcd3fca4519f9c60f9e5
[clangd] Replace the hacky include-cleaner macro-reference implementation.

Now MainFileMacros preserves enough information, we perform a just-in-time
convertion to interop with include-cleaner::Macro for include-cleaer features.

Differential Revision: https://reviews.llvm.org/D147034
clang-tools-extra/clangd/IncludeCleaner.cpp
clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp