[ 
https://issues.apache.org/jira/browse/NETBEANS-1757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701849#comment-16701849
 ] 

Sergey Dyachenko commented on NETBEANS-1757:
--------------------------------------------

Note: going from foo_func declaration  in *"foo.h"* to foo_func implementation 
in *"foo_inl.h"* (included from *"foo.h"* only) with Ctrl+Click works in fact.

But the inverse navigation (from implementation to declaration) does not work 
as I said before.

And switching between these 2 files as between source/header also does not work.

 

> C++ switching source/header or declaration/definition does not work for 
> implementations in separate included headers
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-1757
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1757
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Code Model, cnd - Editor, cnd - Navigation, cnd - 
> Other
>    Affects Versions: 8.2
>            Reporter: Sergey Dyachenko
>            Priority: Major
>
> 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):
> {code:java}
> // declaration
> template <...>
> void foo_func(...);
> // implementation in separate header included from here
> #include "foo_inl.h"
> {code}
> *"foo_inl.h"* (for internal usage only):
> {code:java}
> // implementation
> template <...>
> void foo_func(...)
> {
>     ...
> }
> {code}
> 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.
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to