Author: Haojian Wu Date: 2023-06-01T15:35:57+02:00 New Revision: ad0543f4ea82ec41c5e854af65758fa8d92d5553
URL: https://github.com/llvm/llvm-project/commit/ad0543f4ea82ec41c5e854af65758fa8d92d5553 DIFF: https://github.com/llvm/llvm-project/commit/ad0543f4ea82ec41c5e854af65758fa8d92d5553.diff LOG: [clangd] NFC, use const HeaderSearch when possible. Added: Modified: clang-tools-extra/clangd/index/SymbolCollector.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/index/SymbolCollector.cpp b/clang-tools-extra/clangd/index/SymbolCollector.cpp index a2f8cd2a0cdaf..d1840ff34bfec 100644 --- a/clang-tools-extra/clangd/index/SymbolCollector.cpp +++ b/clang-tools-extra/clangd/index/SymbolCollector.cpp @@ -298,7 +298,7 @@ class SymbolCollector::HeaderFileURICache { // importing the header. std::optional<std::string> getFrameworkUmbrellaSpelling( llvm::StringRef Framework, SrcMgr::CharacteristicKind HeadersDirKind, - HeaderSearch &HS, FrameworkHeaderPath &HeaderPath) { + const HeaderSearch &HS, FrameworkHeaderPath &HeaderPath) { auto Res = CacheFrameworkToUmbrellaHeaderSpelling.try_emplace(Framework); auto *CachedSpelling = &Res.first->second; if (!Res.second) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits