Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336594 - Separating white space removed between C comments
Summary: Separating white space removed between C comments
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 6.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 04:03 EST by MB CLA
Modified: 2020-09-04 15:24 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 MB CLA 2011-02-08 04:03:36 EST
Build Identifier: M20080911-1700

Auto format removes white spaces between C-style comments:
/*comment1*/ /*comment2*/
becomes
/*comment1*//*comment2*/
which is detected as a 'nested comment' by some code checking tools.

Reproducible: Always

Steps to Reproduce:
1.Add the comment /*comment1*/ /*comment2*/ in the code
2.Press Strg+Shift+F for auto-format
3.The white space between the comments is removed
Comment 1 Remy Suen CLA 2011-02-08 05:45:29 EST
Just to be sure, what files are you editing? C? Java? Something else?
Comment 2 MB CLA 2011-02-08 05:47:16 EST
I am editing C files.

(In reply to comment #1)
> Just to be sure, what files are you editing? C? Java? Something else?
Comment 3 Remy Suen CLA 2011-02-08 05:50:22 EST
Issues with the C editor goes to CDT.