FreeBSD Bugzilla – Attachment 254583 Details for
Bug 282371
editors/vscode: Fix build with clang 19
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
vscode.diff (text/plain), 1017 bytes, created by
Guido Falsi
on 2024-10-27 22:06:53 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Guido Falsi
Created:
2024-10-27 22:06:53 UTC
Size:
1017 bytes
patch
obsolete
>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) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282371
: 254583