Skip to content

code_width has no effect #1349

@xeyownt

Description

@xeyownt

Using the following config file:

code_width                      =  80        # unsigned number
ls_for_split_full               = true    # false/true
ls_func_split_full              = true    # false/true
ls_code_width                   = true    # false/true

On the following code:

#include <stdio.h>

unsigned int my_array[100][8] = { { 0x01, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 }, { 0x01, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 }, { 0x01, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 }, { 0x01, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10, 0x10 } };
unsigned int my_other_array[100] = { 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10 };

int main(int argc, char *argv[]) {
	printf("Hello, World!\n", 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20); printf("Hello, World!\n", 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20); printf("Hello, World!\n", 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20); printf("Hello, World!\n", 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20);
	return 0;
}

has no effect. The lines are not wrapped at 80 characters as it should.

This is on commit f404329.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions