This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 225540 - [74cat] Add option for control spaces in templates ">>" symbols formatting.
Summary: [74cat] Add option for control spaces in templates ">>" symbols formatting.
Status: CLOSED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Other
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-30 14:33 UTC by kosmonaffft
Modified: 2016-10-06 04:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
>> formatting screenshot... (21.26 KB, image/png)
2013-01-30 14:33 UTC, kosmonaffft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kosmonaffft 2013-01-30 14:33:44 UTC
Created attachment 130838 [details]
>> formatting screenshot...

Hello, all...
I have some code with nested templates like vector<vector<int>>, and if i write closing >> without spaces, NetBeans automatically indent ">>" like operator (see screenshot), but i do not need any spaces before >> in templates... Is it possible to add this feature to code formatting?
Comment 1 Alexander Simon 2013-01-30 15:35:15 UTC
please provide compilable example.
>> looks like a bug.
Comment 2 Alexander Simon 2013-01-30 16:59:13 UTC
Valid example for C++11:

#include <cstdlib>
#include <vector>
using namespace std;
int main(int argc, char** argv) {
    std::vector<vector<int>>qq;
    return 0;
}
Comment 3 Alexander Simon 2013-01-30 17:01:17 UTC
Investigation C++ lexer returns wrong token for ">>".
Lexer returns token GTGT, should return two tokens GT, GT
Comment 4 Alexander Simon 2016-07-08 13:49:07 UTC
It is impossible to implement it on lexer based formatter.