Community
Participate
Working Groups
I'm using the Eclipse CDT command line formatter as documented at https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_format_app.htm. I've found that the command line formatter requires that -data option be specified. The -data can refer to an empty directory or an existing Eclipse workspace. Is this to be expected? If so, the command line formatter documentation should be update to indicate this. I've also found that in order to prevent the Eclipse splash screen from being shown, the -nosplash option needs to be specified. I would also suggest that the documentation be updated to say this. I'm using CDT Version: 10.6.0.202203091838 Build id: 20220309-1838 under Eclipse IDE for C/C++ Developers (includes Incubating components) Version: 2022-03 (4.23.0) Build id: 20220310-1457 OS: Linux, v.5.3.18-150300.59.60-preempt, x86_64 / gtk 3.24.20 Java vendor: Eclipse Adoptium Java runtime version: 17.0.2+8 Java version: 17.0.2 on openSUSE Leap 15.3.
Thanks for the bug report. The JDT formatter is the basis of the CDT one and I fixed the JDT one in Bug 543363 and that change needs to be pulled into the CDT one. Please follow Bug 552495 (and consider providing a gerrit :-) I'll leave this bug open for the fixes to the documentation that need to happen (to JDT too - https://help.eclipse.org/latest/topic/org.eclipse.jdt.doc.user/tasks/tasks-231.htm)