[clangd] parse all make_unique-like functions in preamble
authorTobias Ribizel <ribizel@kit.edu>
Mon, 16 May 2022 09:17:15 +0000 (11:17 +0200)
committerSam McCall <sam.mccall@gmail.com>
Mon, 16 May 2022 09:17:25 +0000 (11:17 +0200)
commit71cb8c8cb9c162448159f2bffd2c77a8ee82d71f
tree2b57759dee9fba7142793534bc93ee23f828b9f2
parent436bbce7657df830dcebd16b2ad675be56f58681
[clangd] parse all make_unique-like functions in preamble

I am working on support for forwarding parameter names in make_unique-like functions, first for inlay hints, later maybe for signature help.
For that to work generically, I'd like to parse all of these functions in the preamble. Not sure how this impacts performance on large codebases though.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D124688
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/ClangdServer.h
clang-tools-extra/clangd/Compiler.h
clang-tools-extra/clangd/Preamble.cpp
clang-tools-extra/clangd/tool/Check.cpp
clang-tools-extra/clangd/tool/ClangdMain.cpp
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
clang-tools-extra/clangd/unittests/TestTU.cpp
clang-tools-extra/clangd/unittests/TestTU.h