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 255634 - Unresolved parameter in header if header is included in C and C++ compilation units
Summary: Unresolved parameter in header if header is included in C and C++ compilation...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-30 16:00 UTC by Alexander Simon
Modified: 2016-09-01 14: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 Alexander Simon 2015-09-30 16:00:30 UTC
Steps to reproduce:
Create application with 3 files:
1. file welcome.cc:
#include "welcome.h"

2. file newfile.c:
#include "welcome.h"

3. file welcome.h:
#ifndef _welcome_H
#define _welcome_H

#if __cplusplus >= 199711L
namespace std {
#endif
int c_and_cpp_fun(long);
    
#if __cplusplus >= 199711L
  extern "C++" {
    // CompletionUtilities.findFunDefinitionOrClassOnPosition returns null, so
    // Params and their usages are unresolved
    inline long cpp_only(long _l1, long _l2) { return _l1 / _l2; }
  }
#endif /* __cplusplus */
#if __cplusplus >= 199711L
}
#endif

#if !defined(__cplusplus)
void c_only_stop_at();
#endif

#endif /* _welcome_H */

See unresolved _l1 and l2 parameters