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 255178 - Folding an #ifdef block gives an unexpected result
Summary: Folding an #ifdef block gives an unexpected result
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-10 13:05 UTC by ilia
Modified: 2015-09-12 03:06 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 ilia 2015-09-10 13:05:04 UTC
1) Open sqlite3.h
2) Fold ifndef _SQLITE3RTREE_H_ block (~7340)
-------------------
Fold ends on the wrong #endif (should be the last one)
Comment 1 ilia 2015-09-10 13:56:08 UTC
Simplified code:

-------------------------

#ifndef _SQLITE3RTREE_H_
#define _SQLITE3RTREE_H_


#ifdef __cplusplus
extern "C" {
#endif

typedef struct sqlite3_rtree_geometry sqlite3_rtree_geometry;


#ifdef __cplusplus
}  /* end of the 'extern "C"' block */
#endif

#endif  /* ifndef _SQLITE3RTREE_H_ */
Comment 2 Quality Engineering 2015-09-12 03:06:24 UTC
Integrated into 'main-silver', will be available in build *201509120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f077edf93e71
User: Ilia Gromov <ilia@netbeans.org>
Log: Fixed Bug #255178 - Folding an #ifdef block gives an unexpected result
 - fixed incorrect EOF handling by LA(int), LT(int)
 - test added