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.
Summary: | Code completion list contains few mathematical functions | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Code Model | Assignee: | nnnnnk <nnnnnk> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
soldatov
2006-08-16 11:50:33 UTC
not repeatable I can reproduce on Fedora Core 3 and SunOS(sparc) 5.9 It is platform or compiler specific bug. Platform independent test case: ---------------------fedora.h------------------------------- #define __THROW #define __CONCAT(x,y) x ## y #define __MATHCALL(function,suffix, args) \ __MATHDECL (_Mdouble_,function,suffix, args) #define __MATHDECL(type, function,suffix, args) \ __MATHDECL_1(type, function,suffix, args); \ __MATHDECL_1(type, __CONCAT(__,function),suffix, args) #define __MATHCALLX(function,suffix, args, attrib) \ __MATHDECLX (_Mdouble_,function,suffix, args, attrib) #define __MATHDECLX(type, function,suffix, args, attrib) \ __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) #define __MATHDECL_1(type, function,suffix, args) \ extern type __MATH_PRECNAME(function,suffix) args __THROW #define __MATH_PRECNAME(name,r) __CONCAT(name,r) ---------------------fedora_math.h------------------------------- __MATHCALL (tan,, (_Mdouble_ __x)); ---------------------fedora.cc------------------------------- #include "fedora.h" #define _Mdouble_ double #include "fedora_math.h" #undef _Mdouble_ #define _Mfloat_ float #define _Mdouble_ _Mfloat_ #include "fedora_math.h" void fedora(){ tan//<--CTRL+SPACE completion list should contain two methods "tan()". } --------------------------------------------------------------- Code completion shows only functions available on the current platform. This is correct. No. Problem is not fixed. consider for the next release due to lack of resources In general it's include with different macros. *** This bug has been marked as a duplicate of bug 159229 *** |