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 119880 - 'Format' breaks C/C++ macros
Summary: 'Format' breaks C/C++ macros
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-24 10:46 UTC by soldatov
Modified: 2007-10-31 17:00 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 soldatov 2007-10-24 10:46:11 UTC
Steps:
- Set 'Options|Editing|Indentation Engines|C++ Indentation Engine|Add Space Before Parenthesis' as True
- Open in editor this C++ code:
-----------------------------------
#include <stdio.h>
#define M(x) puts(#x)

int main() {
    M("test");
    return 0;
}
-----------------------------------
- Call context menu in editor and select 'Format' menu item
==> After 'Format' I see wrong code in editor (I cannot build this code)
#include <stdio.h>
#define M (x) puts (#x)

int main () {
    M ("test");
    return 0;
}
Comment 1 Alexander Simon 2007-10-24 12:37:03 UTC
fixed when #119652 was fixed.
Comment 2 soldatov 2007-10-31 17:00:12 UTC
verified in 200710301200 build