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 215640 - Code model parser is failed if preprocessor directive is started after comment
Summary: Code model parser is failed if preprocessor directive is started after comment
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 16:01 UTC by Alexander Simon
Modified: 2014-01-14 02:56 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 Alexander Simon 2012-07-17 16:01:10 UTC
Code example:
----------------8<-------------------
/*
 */#ifndef QQ

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(int argc, char**argv) {
    int i;

    // Prints arguments
    printf("Arguments:\n");
    for (i = 0; i < argc; i++) {
        printf("%i: %s\n", i, argv[i]);
    }
     
    return 0;
}
#endif

----------------8<-------------------
Comment 1 Vladimir Voskresensky 2014-01-09 15:17:19 UTC
http://hg.netbeans.org/cnd-main/rev/99f8e31cc6d5
Comment 2 Quality Engineering 2014-01-14 02:56:19 UTC
Integrated into 'main-silver', will be available in build *201401140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/99f8e31cc6d5
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #215640 - Code model parser is failed if preprocessor directive is started after comment
- block comment is the valid token before preprocessor