Can Uncrustify be prevented from modifying certain sections of code?
Asked Answered
E

1

18

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?

Enrollment answered 26/2, 2013 at 19:22 Comment(0)
R
21
/* *INDENT-OFF* */
int i = 0; // No uncrustify action here
/* *INDENT-ON* */
Rexferd answered 18/3, 2013 at 8:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.