vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

format code issue: break in macro,

Open heartacker opened this issue 5 months ago • 5 comments

AlignArrayOfStructures: Left

ORIGIN:

const struct reg aa[] __CMN_RODATA = {
    { abc,    0, format, code },
    { abcd2,  0, format, code },
    { aaaa,   0, why,    why  },
    { whyyyy, 0, why,    why  },
};

add macro:


const struct reg aa[] __CMN_RODATA = {
#if A
    { abc,   0, format, code },
    { abcd2, 0, format, code },
#else
    { aaaa, 0, why, why },
    { whyyyy, 0, why, why },
#endif
};

if 0:

heartacker avatar Jul 12 '25 06:07 heartacker