[clang-tools-extra] ad0543f - [clangd] NFC, use const HeaderSearch when possible.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 1 06:37:03 PDT 2023
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) {
More information about the cfe-commits
mailing list