Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Uncrustify be prevented from modifying certain sections of code?

Uncrustify is great, and does an excellent job of tidying code. However, I have some C code within a file that I don't want Uncrustify to change. Is there any way I can prevent Uncrustify from touching this, maybe by putting specific tags in comments around the code or something?

like image 212
Basirk Avatar asked Feb 26 '13 19:02

Basirk


1 Answers

/* *INDENT-OFF* */
int i = 0; // No uncrustify action here
/* *INDENT-ON* */
like image 99
Manu3l0us Avatar answered Sep 22 '22 19:09

Manu3l0us