git: a811f5edccef - main - editors/vscode: fix build with clang 19
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Nov 2024 23:11:09 UTC
The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=a811f5edccef485b6ada224cacb3a3b07dcd18d3 commit a811f5edccef485b6ada224cacb3a3b07dcd18d3 Author: Guido Falsi <madpilot@FreeBSD.org> AuthorDate: 2024-11-03 23:09:08 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2024-11-03 23:10:55 +0000 editors/vscode: fix build with clang 19 PR: 282371 Reported by: madpilot MFH: 2024Q4 --- .../patch-build_node__modules_tree-sitter_src_node.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/editors/vscode/files/patch-build_node__modules_tree-sitter_src_node.cc b/editors/vscode/files/patch-build_node__modules_tree-sitter_src_node.cc new file mode 100644 index 000000000000..f75a76eb1b69 --- /dev/null +++ b/editors/vscode/files/patch-build_node__modules_tree-sitter_src_node.cc @@ -0,0 +1,15 @@ +--- build/node_modules/tree-sitter/src/node.cc.orig 2024-10-11 07:51:19 UTC ++++ build/node_modules/tree-sitter/src/node.cc +@@ -479,9 +479,9 @@ struct SymbolSet { + } + + struct SymbolSet { +- std::basic_string<TSSymbol> symbols; +- void add(TSSymbol symbol) { symbols += symbol; } +- bool contains(TSSymbol symbol) { return symbols.find(symbol) != symbols.npos; } ++ std::vector<TSSymbol> symbols; ++ void add(TSSymbol symbol) { symbols.push_back(symbol); } ++ bool contains(TSSymbol symbol) const { return std::find(symbols.begin(), symbols.end(), symbol) != symbols.end(); } + }; + + bool symbol_set_from_js(SymbolSet *symbols, const Local<Value> &value, const TSLanguage *language) {