Package: astyle
Version: 3.6.12-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: [email protected]
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