Issues with uncrustify
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HIPL |
New
|
Undecided
|
Pupu Toivonen |
Bug Description
The Uncrustify Code Beautifier tool systematically aligns variable names, although it might not be reasonable in all places.
struct sockaddr_in6 hipfw_addr;
-int n = 0;
+int n = 0;
There is the variable align_var_def_thres in Uncrustify config file, which can be used to set an upper bound for how many spaces can be used for aligning.
I found no configuration item in Uncrustify for forcing spaces between struct name and "{":
i.e. to catch:
typedef struct NetlinkList{
and turn it into:
typedef struct NetlinkList {
Also there is a known bug in Uncrustify (http://
-static int (*action_
+static int(*action_
description: | updated |
description: | updated |
summary: |
- Alignment issues with uncrustify + Issues with uncrustify |
description: | updated |