[PATCH] D156403: [clangd] Revert the symbol collector behavior to old pre-include-cleaner-library behavior due to a regression.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 27 03:34:33 PDT 2023
kadircet added inline comments.
================
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:842
- auto [It, Inserted] = SymbolProviders.try_emplace(S.ID);
- if (Inserted) {
- auto Headers =
- include_cleaner::headersForSymbol(Sym, SM, Opts.PragmaIncludes);
- if (!Headers.empty())
- It->second = Headers.front();
- }
+llvm::StringRef getStdHeader(const Symbol *S, const LangOptions &LangOpts) {
+ tooling::stdlib::Lang Lang = tooling::stdlib::Lang::CXX;
----------------
can you also move this into an anonymous namespace?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156403/new/
https://reviews.llvm.org/D156403
More information about the cfe-commits
mailing list