You are right with your asumption with the input file. Curious thing that it matters under Win32 but not under Linux....
Thank you for your efforts and that you believed me ;-) although my information was not complete at first!!!
File Added: example.cpp.
Problem description:
OS Win32: Problems with CRLF files and the attached configuration
On Linux everything works fine with exactly the same configuration!!
The output looks like this:
#define multilinemacro do { (x+5); } while (0); \
In case of a multi line macro, the indenter sometimes behaves badly by introducing too many newlines, thus leading to bad changes. I think a quick workaround at least would be not to change lines ending with "\" and the line immediately after such a line.
Of course fixing the root cause would be also welcome ;-)
#define multilinemacro do { (x+5); } while (0); \
prin.
When facing multi line macros like
// see if multi line macros are safely handled:
#define multilinemacro do { x= x+5; } while (0); \
printf("a multilinemacro"); \
printf("a multilinemacro2");
A large number of indenter are not behaving well in all cases and are breaking the macro. It would be a good idea to take over an example in this...