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 253424 - Add hint for adding #ifndef + #endif directives around #define [macro] statements
Summary: Add hint for adding #ifndef + #endif directives around #define [macro] state...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-12 09:05 UTC by kalle1
Modified: 2015-07-21 01:18 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 kalle1 2015-07-12 09:05:25 UTC
It is common practice to surround `#define [macro] [value]` statements with `#ifndef [macro]` and `#endif` and it'd be nice to be able to add those with a hint if the absense of `#ifndef` and `#endif` is detected.
Comment 1 danilasergeyev 2015-07-20 17:01:32 UTC
implemented in change set:
http://hg.netbeans.org/cnd-main/rev/844ee06c5e19
Comment 2 Quality Engineering 2015-07-21 01:18:51 UTC
Integrated into 'main-silver', will be available in build *201507210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/844ee06c5e19
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: Bug #253424 Add hint for adding #ifndef + #endif directives around #define [macro] statements - fixed