Automatically sort functions alphabetically in C ++ code

I know a similar question for C # . I downloaded and tried NArrange and UniversalIndentGUI, but both do not sort the C ++ code functions for the name. Does anyone know a nonprofit tool that does this job?

+4
source share
1 answer

Unless you are ordered to reorder the code to conform to an arbitrary coding standard, my advice does not . I have seen people do this before, and the results are not very good. After you finish, the file will look completely different and you will effectively destroy the entire history of changes in the original control. Any difference between this version and any version that was before will look like a messy mess. Ultimately, having a clear history of differences is worth more to you and your team than to some code clarity.

-1
source

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


All Articles