From nobody Sun Nov 03 23:11:09 2024 X-Original-To: dev-commits-ports-main@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 4XhVhY2zgkz5bbYh; Sun, 03 Nov 2024 23:11:09 +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 4XhVhY2XWXz4D36; Sun, 3 Nov 2024 23:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730675469; 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=yRTsf2HY+xSQQ2+zAq/iDPD8kVL4+t+huMUDnKAMo7M=; b=Hm7HVin2j5HJg44fXRHnJxzMcmeFuXOM8Cxcie8bYtjKcBDPEhhMTLKiXik30dsjeAfmjS uLRhJEF2lr+FtZLfU98/AuZtJCi74tRFEU/bpfEom8hBMpd88PDeVYDugNLFMC1KCRS7UE sfRwWe30Eyp/xZKnqr3zpDbRalAg+vVCOImTabyoX/7Z0bG7pP05/MGxbRkV4nhAVWNoC8 INpsMB5wY6zvlAHFc585a7Mg1oFchmzYRdE5Vt2uzTpqCen95IlngQ+PvXmTBhhMXB7SwN OIdwCtnU3hQO/srCI0NP2gGa4aPfY7rJZCgqcd8U2OnZIn+BhYXLFeU3HMfH8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730675469; 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=yRTsf2HY+xSQQ2+zAq/iDPD8kVL4+t+huMUDnKAMo7M=; b=iNQVdIAvysa+1N69U632Td/me7vfZTxQlXCBD8Ff6i7howo5ofwHMdwWLUiXvhRUPqayny TwYYSCYgicqQYeNwzYu6BiGkPz4TejAD3jqbNBLEdEYJngK60FuABMaHrDxYobi8WbWgaS 7fejv1KhyxnRekUTvbp3j8l1azCVWgPqDf7g7S1Uw45k37J1uF5IpXX/OWQfBYc1yP70Iq /M0p5GHUzzQw24Yy7YBKhuMTA9PlAZ9AO/hqlITkIUJlgbavkW8xObkl+//S2mBLhCi5ro YK1cRj7TQCNb+0v5bJFpJOD4EnxDgQZduRY+cDPYWh8YwALCMhpPQWZJWjepmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730675469; a=rsa-sha256; cv=none; b=LLfhgn3hEd5yi9Qj55yng2xJqdhDeb+TEI23ngme0cShAx2S357F+Rnit2uf5DOvmp94eM CYLj4YoNq/qNVwoHNewdq80i06TjV05psZlXUPb7qqCWkKTmTaZceXRdsz78KKZOClbJNm Qu+30L2ejiNoBajaXRmCFntbdmdG6jBjKsbRuarb8snRjc3UmUw2SdHykuZ4FK64X8MSvE SXU1QiIkB3q67BY8dcSChOxX3+ii7rN7YpFpnYU2mkKZDFDk1Fs8u0cTYslaDkMDiPxw1c QpOV6DaW/hZhvuNPyEjrPawZS9AS6PZiqayCaOKxFhdkFRum4kq/9q0+LkmNiw== 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 4XhVhY284Jz17gt; Sun, 3 Nov 2024 23:11:09 +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 4A3NB9I8009551; Sun, 3 Nov 2024 23:11:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3NB9JV009548; Sun, 3 Nov 2024 23:11:09 GMT (envelope-from git) Date: Sun, 3 Nov 2024 23:11:09 GMT Message-Id: <202411032311.4A3NB9JV009548@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: a811f5edccef - main - editors/vscode: fix build with clang 19 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@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/main X-Git-Reftype: branch X-Git-Commit: a811f5edccef485b6ada224cacb3a3b07dcd18d3 Auto-Submitted: auto-generated The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=a811f5edccef485b6ada224cacb3a3b07dcd18d3 commit a811f5edccef485b6ada224cacb3a3b07dcd18d3 Author: Guido Falsi AuthorDate: 2024-11-03 23:09:08 +0000 Commit: Hiroki Tagato 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 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) {