[clangd] Fix build by replacing unsigned long with std::vector::size_type.

This commit is contained in:
Viktoriia Bakalova 2023-03-28 14:16:50 +00:00
parent 655baae2af
commit 2fccca8d74

View File

@ -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));