Can Uncrustify be prevented from modifying certain sections of code?

若如初见. 提交于 2019-12-03 11:41:01

问题


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?


回答1:


/* *INDENT-OFF* */
int i = 0; // No uncrustify action here
/* *INDENT-ON* */


来源:https://stackoverflow.com/questions/15097501/can-uncrustify-be-prevented-from-modifying-certain-sections-of-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!