Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1757

C++ switching source/header or declaration/definition does not work for implementations in separate included headers

    XMLWordPrintableJSON

Details

    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.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            dyachenko.sergey Sergey Dyachenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: