Thread View: linux.debian.bugs.dist
1 messages
1 total messages
Started by Xudong Zheng
Mon, 16 Nov 2026 15:10
Bug#1154173: astyle: Incorrect indentation of multiline macro arguments
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads