Bug 255949 - Code Style Auto Formatter BackSlash character lost
Summary: Code Style Auto Formatter BackSlash character lost
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 5.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 6.0   Edit
Assignee: Anton Leherbauer CLA
QA Contact:
URL: https://www.securecoding.cert.org/con...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-20 06:50 EST by james brown CLA
Modified: 2008-12-01 09:21 EST (History)
2 users (show)

See Also:


Attachments
sample project (43.61 KB, application/octet-stream)
2008-11-24 16:28 EST, james brown CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description james brown CLA 2008-11-20 06:50:47 EST
Build ID: 3.4.1

Steps To Reproduce:
1. Copy and Paste the C99 compliant code below

#define assign_nc(uc1, uc2, uc3, uc4, val) \
	uc1##uc2##uc3##uc4 = val;

#define assign_c(ucn, val) ucn = val;

void nc_PRE30C_1(void)
{
	int \U00010401\U00010401\U00010401\U00010402;
	assign_nc(\U00010401, \U00010401, \U00010401, \U00010402, 4);
}

void c_PRE30C_1(void)
{
   int \U00010401\U00010401\U00010401\U00010402;
   assign_c(\U00010401\U00010401\U00010401\U00010402, 4);
}


2. Press Ctrl+Shift+F

3. Some of the backslash "\" characters will be lost


More information:
With Eclipse 3.4.1 and C.D.T 5.0.1
Comment 1 Anton Leherbauer CLA 2008-11-24 09:10:22 EST
This seems to work for me. Could you provide more details?
A sample project which shows the problem would be great.
Comment 2 james brown CLA 2008-11-24 16:28:28 EST
Created attachment 118627 [details]
sample project
Comment 3 james brown CLA 2008-11-24 16:30:07 EST
(In reply to comment #1)
> This seems to work for me. Could you provide more details?
> A sample project which shows the problem would be great.


I have attached sample screenshot and project. The backslashes (on the red circles in the screenshot) has been disappered after applying Auto Code Style.

Comment 4 Anton Leherbauer CLA 2008-11-25 10:18:31 EST
Thanks, I can reproduce it.
Comment 5 Anton Leherbauer CLA 2008-12-01 09:21:46 EST
Fixed in 6.0 > 20081201.