| Summary: | have the CDT formatter respect 'indent' style no-format sections with the "*INDENT-OFF*" & "*INDENT-ON* tokens | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Sagie <sagie> |
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Anton Leherbauer <aleherb+eclipse> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | cbrown, cdtdoug, marco.stornelli, pong_ho80, sharon.dagan, tim.froidcoeur+eclipse, tryfon.farmakakis, waav_zoungla-efc7, zeratul976 |
| Version: | 7.0 | ||
| Target Milestone: | 9.7.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
JDT uses //@formatter:on and //@formatter:off maybe it makes sense to honor these same directives? JDT also has this as a configurable option with the default being off. I agree that CDT should follow the JDT defaults on this. *** Bug 453926 has been marked as a duplicate of this bug. *** *** Bug 285900 has been marked as a duplicate of this bug. *** *** Bug 419978 has been marked as a duplicate of this bug. *** This bug has been already been fixed, (see but 496249). I meant bug 496249 Thanks, closed as dupe. *** This bug has been marked as a duplicate of bug 496249 *** |
Build Identifier: enable code sections to be annotated with "/* *INDENT-OFF* */" & "/* *INDENT-ON* */ tokens to disable auto-formatting. This will enable protecting special code sections such as [1] which should be indented by hand. referred section brought here for conveniences: static const struct linedraw cstable[]={ { latin1_3, "| ", "|--", "·--", "©" }, { iso8859_789, "| ", "|--", "·--", "(c)" }, { shift_jis, "\204\240 ", "\204\245", "\204\244", "(c)" }, { euc_jp, "\250\242 ", "\250\247", "\250\246", "(c)" }, { euc_kr, "\246\242 ", "\246\247", "\246\246", "(c)" }, { iso2022jp, "\033$B(\"\033(B ", "\033$B('\033(B", "\033$B(&\033(B", "(c)" }, { ibm_pc, "\263 ", "\303\304\304", "\300\304\304", "(c)" }, { ibm_ps2, "\263 ", "\303\304\304", "\300\304\304", "\227" }, { ibm_gr, "\263 ", "\303\304\304", "\300\304\304", "\270" }, { gb, "\251\246 ", "\251\300", "\251\270", "(c)" }, { utf8, "\342\224\202\302\240\302\240", "\342\224\234\342\224\200\342\224\200", "\342\224\224\342\224\200\342\224\200", "\302\251" }, { big5, "\242x ", "\242u", "\242|", "(c)" }, { viscii, "| ", "|--", "`--", "\371" }, { koi8ru, "\201 ", "\206\200\200", "\204\200\200", "\277" }, { windows, "| ", "|--", "`--", "\251" }, { NULL, "| ", "|--", "`--", "(c)" } }; [1] ftp://mama.indstate.edu/linux/tree/tree-1.5.3.tgz, file: tree.c, line: ~1766 Reproducible: Always