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

Summary: code folding should not create fold for outmost guard #ifndef/#define/#endif
Product: cnd Reporter: Vladimir Voskresensky <vv159170>
Component: NavigationAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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_ */