pantry/projects/soliditylang.org/clang-error.diff
Jacob Heider 159c3a152b
fix(solidity) (#164)
* fix(solidity)

v0.8.18 removes `solidity-upgrade`, which we were already removing.

* patch new cpp file
2023-02-01 18:34:15 -05:00

13 lines
710 B
Diff

diff --color=auto -ru a/libsolidity/lsp/DocumentHoverHandler.cpp b/libsolidity/lsp/DocumentHoverHandler.cpp
--- a/libsolidity/lsp/DocumentHoverHandler.cpp 2023-02-01 17:33:07
+++ b/libsolidity/lsp/DocumentHoverHandler.cpp 2023-02-01 17:32:26
@@ -63,7 +63,7 @@
auto const [sourceUnitName, lineColumn] = HandlerBase(*this).extractSourceUnitNameAndLineColumn(_args);
auto const [sourceNode, sourceOffset] = m_server.astNodeAndOffsetAtSourceLocation(sourceUnitName, lineColumn);
- MarkdownBuilder markdown{};
+ MarkdownBuilder markdown = {stringstream(ios_base::in)};
auto rangeToHighlight = toRange(sourceNode->location());
// Try getting the type definition of the underlying AST node, if available.