Community
Participate
Working Groups
Build Identifier: CDT Build id: 201006141710 If the list of arguments of the function contains arguments with templates, this confuses the formatter. See attached examples. Reproducible: Always
Created attachment 179265 [details] Result of actual formatting
Created attachment 179266 [details] Result of expected formatting
Created attachment 179267 [details] Formatting rules
Fixed in HEAD and 7.0.2.
*** cdt cvs genie on behalf of aleherbau *** Bug 325783 - [formatter] Function call arguments' indentation is wrong if there is a templated argument [*] CodeFormatterVisitor.java 1.81 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CodeFormatterVisitor.java?root=Tools_Project&r1=1.80&r2=1.81 [*] CodeFormatterTest.java 1.56 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java?root=Tools_Project&r1=1.55&r2=1.56 [*] CodeFormatterVisitor.java 1.78.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/CodeFormatterVisitor.java?root=Tools_Project&r1=1.78.2.1&r2=1.78.2.2 [*] CodeFormatterTest.java 1.54.2.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/CodeFormatterTest.java?root=Tools_Project&r1=1.54.2.1&r2=1.54.2.2