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 96031 - Parser ignores header files
Summary: Parser ignores header files
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-20 13:50 UTC by soldatov
Modified: 2007-08-06 17:33 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 soldatov 2007-02-20 13:50:10 UTC
First scenario:
- Create C/C++ Application project
- Add C or C++ header file with this code into project:
--------------------------------

int f();
int f2();

--------------------------------
- Save file
==> Quick navigator and Class View is empty

Second scenario:
- Create C/C++ Application project
- Create C file with this code:
-------------------------------------
#include <stdlib.h>
#include "newmain.h"

int f() {
    return 0;
}

int f2() {
    return 0;
}

int main(int argc, char** argv) {   
    return (EXIT_SUCCESS);
}

-------------------------------------
- Save file
- Create C header file with this code:
-------------------------------------

int f();
int f2();

-------------------------------------
- Reload project
- Open header file in built-in editor
- Add "int f3();" into header file
- Save file
==> New f3() function doesn't appear in Class View tab
Comment 1 soldatov 2007-02-20 14:10:01 UTC
P.S. It is regression because in build 20070210, for example, I cannot reproduce
this bug
Comment 2 Vladimir Voskresensky 2007-02-20 14:32:09 UTC
getLanguage of header file is "Other", such kind is not accepted and filtered
out by project system.
Comment 3 Vladimir Voskresensky 2007-02-20 15:00:48 UTC
fixed:
introduced kind for header file and accept such files in code model

cvs log:
Checking in
modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ProjectBase.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ProjectBase.java,v
 <--  ProjectBase.java
new revision: 1.2.2.27.2.38; previous revision: 1.2.2.27.2.37
done
Checking in
makeproject/src/org/netbeans/modules/cnd/makeproject/api/configurations/Item.java;
/shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/configurations/Item.java,v
 <--  Item.java
new revision: 1.2.2.4.8.3; previous revision: 1.2.2.4.8.2
done
Checking in core/src/org/netbeans/modules/cnd/api/project/NativeFileItem.java;
/shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/api/project/NativeFileItem.java,v
 <--  NativeFileItem.java
new revision: 1.1.2.3; previous revision: 1.1.2.2
done
Comment 4 Maria Tishkova 2007-08-06 17:32:54 UTC
verified in 5.5.1u1