Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.2
-
None
-
None
Description
C++ switching source/header or declaration/definition does not work for implementations in separate included headers.
Consider the following pattern rather common for template declarations and implementations. At least this pattern is quite common in our source code.
"foo.h" (normal header included from source files):
// declaration template <...> void foo_func(...); // implementation in separate header included from here #include "foo_inl.h"
"foo_inl.h" (for internal usage only):
// implementation
template <...>
void foo_func(...)
{
...
}
If you try to switch between these 2 files as between source/header: that doesn't work.
If you try to switch between foo_func declaration / implementation with Ctrl+Click: that doesn't work.
In fact I do not know any convenient way to navigate between foo_func declaration and implementation in NetBeans C++.
Note: for example, both ways mentioned above work OK in Eclipse CDT without any additional setup.