mirror of
https://github.com/intel/llvm.git
synced 2026-02-05 13:21:04 +08:00
[clangd] Fix build by replacing unsigned long with std::vector::size_type.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user