From nobody Sun Nov 03 23:12:12 2024 X-Original-To: dev-commits-ports-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XhVjn0G0Zz5bbp8; Sun, 03 Nov 2024 23:12:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhVjm5msmz4DLf; Sun, 3 Nov 2024 23:12:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730675532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uiLNP/lZH1AEUpU84dcJGBEJ+t6a/iI4WZRNW09spm8=; b=PusKP1bpnONLAEi8XIESY5hyX7Wyxw7RcRI5WcUyI1U7f3tq5ocgQgc7GWiwueNdxf7NXu PE7BVTny28E3+H73wa5OvzmYpDA4Q7hzdGY41zbK9Tsd1EUtEiwIpmYE8K3rGbpqA5zPr1 atI1qu4vKPgWZxVGzhd9ZIIfYNq+LcHOR022wN7CY8FH1kbQU9L5qMQpSoBZMlU67aYU4P Z5PzWEHcrhutUU1/OnnN4IyFp6pAcOoWMwp5h/zHqZAspA8ANLQRpYZtNC0KrWxAepsJ7F QwtA0Httiv1P/Roru3hXqAPZDzzNoAUpk3+eMjPbJvdc7VxGzmJ3HggO6Mtx5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730675532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uiLNP/lZH1AEUpU84dcJGBEJ+t6a/iI4WZRNW09spm8=; b=vvq6b9Zqf2shyM/PBIeXRPcLt3nw1h+lQF8ECNRP4JpIyILM+NjWJ2OqHaqxZGEJ3GCCVY iLSAZ//HpLWYbaC1JBAyU1ttDJ0byNqjJQfyiP8yulERMglSJOQagWykUfqZMbUHOv7/zY XJdPR+ckXuF9HNd5tFknRB1TwS8p42TAC8Jq1o0zKuKql+d1F8g1svb1GVWN7Xq+Gqe6Ey /dyRUaVTtc4f6z1DrTZO7F8NTumLHY0FEOyTtqciSx9FwNxuZTagSrXW2CGj8MENDWVeDy npsdDa6h/PRJNtlnBoejZ3DB6Fg1f+Fp9fIFU6uVkLghjaXXld0nNYQVfh+w7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730675532; a=rsa-sha256; cv=none; b=UbQPRS8LkGTe4+Erd9I+hczooqiO6SugxaPH975GtxIIpXoodhMCCSAQMLwtGXYm5Dv8xy 2ona0whIrWtwKbd6RGzRKbA+P2Fum+frChqQ3T8XUfutbLY3WowNH1+KxurUssEmbQLfEA BhR78VBSYyQQOpzTWDQYk+x5ADJkKWSl1po0Sll2IAYoxM9NCc5PruWRPj5/uuPHK5zZ8p mqN5DG/IdEk0smOyXxnXcQKwtP/C6Nu8C42RPf7lIFvYMO/uzww+ihfG/0iO4UPTNIYYSw wNFy4kV6XRyjIAzsScT+ju71MW1vqgxihEgTp0lpuAdM75TmHJaDoJ5bPUht+Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XhVjm5PRgz17TN; Sun, 3 Nov 2024 23:12:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A3NCCGb012206; Sun, 3 Nov 2024 23:12:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3NCCdD012203; Sun, 3 Nov 2024 23:12:12 GMT (envelope-from git) Date: Sun, 3 Nov 2024 23:12:12 GMT Message-Id: <202411032312.4A3NCCdD012203@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Hiroki Tagato Subject: git: 895bbbe0832c - 2024Q4 - editors/vscode: fix build with clang 19 List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-branches@freebsd.org Sender: owner-dev-commits-ports-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q4 X-Git-Reftype: branch X-Git-Commit: 895bbbe0832cdda00fea9d50b6c6ac6251842add Auto-Submitted: auto-generated The branch 2024Q4 has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=895bbbe0832cdda00fea9d50b6c6ac6251842add commit 895bbbe0832cdda00fea9d50b6c6ac6251842add Author: Guido Falsi AuthorDate: 2024-11-03 23:09:08 +0000 Commit: Hiroki Tagato CommitDate: 2024-11-03 23:12:02 +0000 editors/vscode: fix build with clang 19 PR: 282371 Reported by: madpilot MFH: 2024Q4 (cherry picked from commit a811f5edccef485b6ada224cacb3a3b07dcd18d3) --- .../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 symbols; +- void add(TSSymbol symbol) { symbols += symbol; } +- bool contains(TSSymbol symbol) { return symbols.find(symbol) != symbols.npos; } ++ std::vector 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, const TSLanguage *language) {