Article View: linux.debian.bugs.dist
Article #4735Bug#1154173: astyle: Incorrect indentation of multiline macro arguments
From: Xudong Zheng
Date: Mon, 16 Nov 2026 15:10
Date: Mon, 16 Nov 2026 15:10
55 lines
2982 bytes
2982 bytes
Package: astyle
Version: 3.6.12-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: fe7b0en9@slicealias.com
Dear Maintainer,
AStyle 3.6.12 incorrectly removes continuation indentation from multiline
macro arguments inside an initializer.
For example, running `astyle test.c` on:
```
static const struct bt_data adv_data_hids[] = {
BT_DATA_BYTES(
BT_DATA_UUID16_ALL,
BT_UUID_16_ENCODE(BT_UUID_HIDS_VAL),
BT_UUID_16_ENCODE(BT_UUID_BAS_VAL)
),
};
```
removes one indentation level from the three argument lines:
```
static const struct bt_data adv_data_hids[] = {
BT_DATA_BYTES(
BT_DATA_UUID16_ALL,
BT_UUID_16_ENCODE(BT_UUID_HIDS_VAL),
BT_UUID_16_ENCODE(BT_UUID_BAS_VAL)
),
};
```
The original indentation is expected.
The upstream report is
<https://sourceforge.net/p/astyle/bugs/588/>
The fix is included in AStyle 3.6.20
<https://gitlab.com/saalen/astyle/-/commit/17472e3f7e6e040a46ebf0f88683659717ea42b8>
Could Debian update to 3.6.20 or newer for Forky?
-- System Information:
Debian Release: 13.7
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.113+deb13-cloud-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
Technical Details
Message-ID:
<O06vf-cgZi-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Xudong Zheng <fe7b0en9@slicealias.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#1154173: astyle: Incorrect indentation of multiline macro arguments Date: Mon, 16 Nov 2026 16:10:01 +0100 Message-ID: <O06vf-cgZi-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 16 15:05:15 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Xudong Zheng <fe7b0en9@slicealias.com>, 1154173@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: fe7b0en9@slicealias.com, mcy@lm7.fr X-Debian-Pr-Message: report 1154173 X-Debian-Pr-Package: astyle X-Debian-Pr-Keywords: upstream X-Debian-Pr-Source: astyle Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: reportbug 13.2.0 X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2002992 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 55 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 16 Nov 2026 10:03:28 -0500 X-Original-Message-ID: <179484140833.1048.7828025071227391382.reportbug@3f3df991fdd2>