You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int (*found_proc)(struct i2c_adapter *, int, int);
static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind,
int (*found_proc)(struct i2c_adapter *, int, int));
Expected output:
int (*found_proc) (struct i2c_adapter *, int, int);
static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind,
int (*found_proc) (struct i2c_adapter *, int, int));
Actual output:
int (*found_proc) (struct i2c_adapter *, int, int);
static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind,
int (*found_proc)(struct i2c_adapter *, int, int));
Note that ordinarily, the first ) in the function pointer is correctly detected as a TPAREN_CLOSE, but if the function pointer is itself a function argument, it is detected as an FPAREN_CLOSE.
The text was updated successfully, but these errors were encountered:
alexhenrie
added a commit
to alexhenrie/uncrustify
that referenced
this issue
Aug 5, 2021
Config file:
Test code (adapted from tests/input/c/i2c-core.c):
Expected output:
Actual output:
Debug output:
Note that ordinarily, the first
)
in the function pointer is correctly detected as aTPAREN_CLOSE
, but if the function pointer is itself a function argument, it is detected as anFPAREN_CLOSE
.The text was updated successfully, but these errors were encountered: