Uncrustify space after // in a wrapped command line

I am using uncrustify with the following parameter:

sp_cmt_cpp_start                = force         # Add space after opening '//'
cmt_width                       = 78  

Input:

bi.dwSize = sizeof (bi); //Size of the structure itself, must be initialized with sizeof(CGOSBOARDINFO)

Conclusion:

bi.dwSize = sizeof(bi); // Size of the structure itself, must be
                              //initialized with sizeof(CGOSBOARDINFO)

But after // in the second line "// initialized" it should look like :

bi.dwSize = sizeof(bi); // Size of the structure itself, must be
                              // initialized with sizeof(CGOSBOARDINFO)

Does anyone have an idea how to fix this little problem?

+5
source share
1 answer

I registered a problem against uncrustify. I also have a possible fix if you're interested, and you can restore uncrustify from the source.

https://github.com/bengardner/uncrustify/issues/95

force add . , . (uncrustify line wrapping .)

: ​​ master, 2012-12-04: https://github.com/bengardner/uncrustify/commit/44e0253a

+4

All Articles