Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 546391 - [formatter] Tags on/off problems
Summary: [formatter] Tags on/off problems
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 9.8.0   Edit
Assignee: Marco Stornelli CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on: 496249
Blocks:
  Show dependency tree
 
Reported: 2019-04-13 02:24 EDT by Marco Stornelli CLA
Modified: 2019-04-13 14:30 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Stornelli CLA 2019-04-13 02:24:01 EDT
Formatter tags have the following problems at the moment:

1) The new line is removed before an off tag and this code is not formatted correctly because the final brace is not moved on the next line:

int xx(){string s1="abc";string s2="def";}
/* @formatter:off */


2) The formatter is enabled before the on comment formatting the on comment itself, but docs says that formatter should be enabled after the on comment.
Comment 1 Jonah Graham CLA 2019-04-13 14:28:56 EDT
Thanks Marco!