From nobody Thu Jul 23 10:00:35 2026 X-Original-To: dev-commits-src-all@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 4h5RT05h7Cz6lVth for ; Thu, 23 Jul 2026 10:00:36 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h5RT00L1yz3Vmv for ; Thu, 23 Jul 2026 10:00:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784800836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+ccruxCIWleYDsdHiYu44OlIEPON4jLGIvqoDUoDrc8=; b=h/okO+sYP1/VQkMLPi58JluLrReRNaL0YFK60B+WII9ehJ2KxGWAsgJjtNJAz62R8Cw2oC kdq9WPbbRGKOTG4Q0kt8n77S1taMu5qnp3tQ5y3hNscE/umYYEQPVhqgR0RyWRllbYF0Sn l8M9HHXhtRYvfy9GtDUjRWd3YJ9uurBzYYQYW2LMsB3ELPa2r0ddoJuP8fKyl3BMOJj6l9 VLJjJ50mJRwlC6gPKs0pmQM3PEyw4jNWr0bxXKqsRHEjyaad+eWlRO643o02hItSPt3ctU Gfc6kHzJzrJBYS8dmOGZwnXUjqrpHfUlBuX1xDyztycGFaqqNP3wEvuaruJTmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1784800836; a=rsa-sha256; cv=none; b=jwb+/WCIXPMKU0OwSwO6JXK4TNKbBWuhO+7Lx9agFBwXEKnLqfX84Xl4AX6maQJiayHUSD HQcTuDBU8bR+/EbfsvXBtaeDW55AEKUoQV4lJBxsqGUwjZcyDeJ7SiYQCIw4SlHTpOcesq lknabfYjEPGin0dhOJScKsrlmTqlJtVJofpQhv9xJk1SI63GvzmdeESrXMkaJ7zajtiZGO VZsYuUdKsElEF48TwVuQ5Zst1bacG9bJ5VH10GoMzA4hSC1dcNfUz+yJRdAzV8gRhHorZX K1kpqt7dlhqr4Kwgz3coJ4oApSYdubN52B/nue1e4EFvQd4kI90oyShB1+FCZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1784800836; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+ccruxCIWleYDsdHiYu44OlIEPON4jLGIvqoDUoDrc8=; b=ES4g7+K++Lp+r1Ek15ApcGTHXvYaJPiHJo9WUh7YTZ9tHatQ/YU3P87H/x2WBhO797ScoM kKGqLfqSIFlloX9SeXUQqtc4kLWPyaRr29WTGncNhPSXo4Lsf/JYo0DM1KBzjZ+jFp52K1 OkjMECrFT6McZlZRkMcbSCGM6iY+e/zcsO9BJTEKfLMXbMbhVOKuwIbM8T2lgkhwz3giG9 b3eoIO1WFGYl8djfVPEYzPvyWb40AxMT5d4QmjTuG5AFc2O5eSPqngMBYlELTo0/grWlKU XP3FTKPL3KdSyjRnNiy6q9DbQPepKNd1FaN0wm8PU0M47KVYcXdeNabZtrwBEg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h5RSz6KtCz10ds for ; Thu, 23 Jul 2026 10:00:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3cabd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 23 Jul 2026 10:00:35 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Lexi Winter From: Olivier Certner Subject: git: a00d53218a09 - stable/14 - style.9: relax "return (value)" requirement for C++ List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olce X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a00d53218a0998aa083789af8b37c76af8dbf34c Auto-Submitted: auto-generated Date: Thu, 23 Jul 2026 10:00:35 +0000 Message-Id: <6a61e643.3cabd.63c72cb4@gitrepo.freebsd.org> The branch stable/14 has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=a00d53218a0998aa083789af8b37c76af8dbf34c commit a00d53218a0998aa083789af8b37c76af8dbf34c Author: Lexi Winter AuthorDate: 2025-03-27 14:23:13 +0000 Commit: Olivier Certner CommitDate: 2026-07-23 09:59:03 +0000 style.9: relax "return (value)" requirement for C++ consider the following C++ code: struct S { int a, b; }; S f() { return {1, 2}; } according to style(9), the return statement should be formatted as: return ({1, 2}); however, this is not valid C++ code and will not compile. add an exception to style(9) to cover this case. Reviewed by: imp, emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1623 Closes: https://github.com/freebsd/freebsd-src/pull/1623 (cherry picked from commit daf47b9ec9ed360dfdff6769ae4d0c2c16972552) --- share/man/man9/style.9 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 5542a9685c46..484b4f144b2e 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd February 18, 2025 +.Dd March 27, 2025 .Dt STYLE 9 .Os .Sh NAME @@ -766,7 +766,8 @@ to any pointer type. .Pp Values in .Ic return -statements should be enclosed in parentheses. +statements should be enclosed in parentheses where possible. +For example, parentheses cannot be used if the value is a C++ braced-init-list. .Pp Use .Xr err 3