dawnbeen / c_formatter_42

C language formatter for 42 norminette
GNU General Public License v3.0
165 stars 17 forks source link

Fix #51 #53

Closed younesaassila closed 1 year ago

younesaassila commented 1 year ago

Fixes #51 by setting Clang-Format's column limit to some large number to effectively "disable" it because ColumnLimit: 0 was simply ignored, resulting in function declarations split up on multiple lines, which c_formatter_42 cannot handle, resulting in formatting errors.

On the topic of ColumnLimit getting ignored:

I chose 1024 for the column limit since I think no reasonable code line would be over that threshold?

cacharle commented 1 year ago

Could you please add a test for this?