Encoder / reformer for C, C ++ or Fortran

Suppose you have a bunch of files written in C, C ++ or Fortran, by different authors, with different opinions on formatting, comments, etc. I think many people know such situations.

Are there any free tools for such purposes as:

  • single code format (indentation, etc.)
  • create standard comment bodies
  • rename variables

?

+3
source share
5 answers
+2

AStyle. , /. Fortran, C, ++, # Java

+5

indent (unix). , , , ,

+4

CDT Eclipse C/++.

.

, , .. - . ( / , . ).

, , .

: - - , , (, , ). , , . , , , , " ", include paths. ( , gcc - .)

0

I used Uncrustify with UniversalIndentGui to format C ++ code. It works very well. Uncrustify offers many customization options, and UniversalIndentGui offers real-time previews for adjusting the parameters of almost any indenter. You change the parameter value and see how your reformatted code will look.

0
source

Source: https://habr.com/ru/post/1758177/


All Articles