Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334606 - [c++0x] Double right angle brackets formatting breaks list initializers when mixed inside a namespace
Summary: [c++0x] Double right angle brackets formatting breaks list initializers when ...
Status: CLOSED DUPLICATE of bug 333816
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 7.0.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 22:19 EST by David E. Narvaez CLA
Modified: 2011-01-20 02:36 EST (History)
1 user (show)

See Also:


Attachments
Example file for testing (197 bytes, text/x-c)
2011-01-17 22:24 EST, David E. Narvaez CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David E. Narvaez CLA 2011-01-17 22:19:52 EST
Build Identifier: M20100909-0800

I guess this is a hard one to catch:

Say you have your Code Style configured to have list initializers in the same line. Then, let's say you have a list initializer and you have double right angle brackets in the same file and these are both in a namespace.

Reproducible: Always

Steps to Reproduce:
1. Configure the Code Style to have list initializers in the same line of declaration
2. Open a namespace
3. Use double right angle brackets inside the namespace
4. Use list initializers in the same namespace
5. Try autoformatting
Comment 1 David E. Narvaez CLA 2011-01-17 22:24:12 EST
Created attachment 186965 [details]
Example file for testing

An example file showing the situation. You can play around with formatting in this file. Notice that commenting the bogus function shows yet another formatting weirdness that may be related to the same issue.
Comment 2 Anton Leherbauer CLA 2011-01-18 09:27:05 EST
This appears to be fixed with bug 333816.  Please confirm.
Comment 3 David E. Narvaez CLA 2011-01-19 23:55:01 EST
(In reply to comment #2)
> This appears to be fixed with bug 333816.  Please confirm.

Confirmed, sorry for that: I lost track of the versions among my Eclipse installations.

Thanks again!

David E. Narváez
Comment 4 Anton Leherbauer CLA 2011-01-20 02:36:40 EST
Thanks for verifying.

*** This bug has been marked as a duplicate of bug 333816 ***