[clang-tools-extra] 2fccca8 - [clangd] Fix build by replacing unsigned long with std::vector::size_type.
Viktoriia Bakalova via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 28 07:17:36 PDT 2023
Author: Viktoriia Bakalova
Date: 2023-03-28T14:16:50Z
New Revision: 2fccca8d743613fac4d68f7b14799a672394f64b
URL: https://github.com/llvm/llvm-project/commit/2fccca8d743613fac4d68f7b14799a672394f64b
DIFF: https://github.com/llvm/llvm-project/commit/2fccca8d743613fac4d68f7b14799a672394f64b.diff
LOG: [clangd] Fix build by replacing unsigned long with std::vector::size_type.
Added:
Modified:
clang-tools-extra/clangd/Hover.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Hover.cpp b/clang-tools-extra/clangd/Hover.cpp
index b399a12cd90c..af4fbe58b864 100644
--- a/clang-tools-extra/clangd/Hover.cpp
+++ b/clang-tools-extra/clangd/Hover.cpp
@@ -1451,7 +1451,7 @@ markup::Document HoverInfo::present() const {
markup::Paragraph &P = Output.addParagraph();
P.appendText("provides ");
- const unsigned long SymbolNamesLimit = 5;
+ const std::vector<std::string>::size_type SymbolNamesLimit = 5;
auto Front =
llvm::ArrayRef(UsedSymbolNames)
.take_front(std::min(UsedSymbolNames.size(), SymbolNamesLimit));
More information about the cfe-commits
mailing list