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 76199 - code folding should not create fold for outmost guard #ifndef/#define/#endif
Summary: code folding should not create fold for outmost guard #ifndef/#define/#endif
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 10:24 UTC by Vladimir Voskresensky
Modified: 2010-04-25 12:13 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-05-11 10:24:48 UTC
Example:
=========
#ifndef _FILE_H_
#define _FILE_H_

#ifdef A
...
#endif

class B {
...
}

#endif  */ _FILE_H_ */
==========

It's prefered do not create fold for outmost guard block to prevent not good
looking nested folds where possible, so instead of 
========
*#ifndef _FILE_H_
|#define _FILE_H_
|
*#ifdef A
|...
-#endif
|
*class B {
|...
-}
|
-#endif  */ _FILE_H_ */
==========
it's prefered to have:
==========
 #ifndef _FILE_H_
 #define _FILE_H_

*#ifdef A
|...
-#endif

*class B {
|...
-}

#endif  */ _FILE_H_ */