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 232860 - [74cat] Add options to control code formatting in complex templates specializations.
Summary: [74cat] Add options to control code formatting in complex templates specializ...
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-07-17 04:45 UTC by kosmonaffft
Modified: 2016-10-06 04:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kosmonaffft 2013-07-17 04:45:50 UTC
If i have complex template specialization, as example
any<
    mpl::vector<
        copy_constructible<>,
        typeid_<>,
        incrementable<>,
        ostreamable<>
    >
> x(10);

i cannot control spaces inside <> braces, so, after code reformatting i have this result:

any<
mpl::vector<
copy_constructible<>,
typeid_<>,
incrementable<>,
ostreamable<>
>
> x(10);

I think options for templates formatting will be helpful...
Comment 1 Alexander Simon 2016-07-08 13:49:51 UTC
It is impossible to implement it on lexer based formatter.
Comment 2 kosmonaffft 2016-07-08 15:24:46 UTC
Is it possible to not break existing formatting inside templates?
Comment 3 Alexander Simon 2016-07-08 15:43:10 UTC
(In reply to kosmonaffft from comment #2)
> Is it possible to not break existing formatting inside templates?
Formatter cannot understand that it is a template by using only lexer.
It can be safely implemented only on AST.