[caption id="attachment_6317" align="aligncenter" width="664"](https://codeyarns.files.wordpress.com/2015/03/20150316_nsight_cpp.png) Add the mapping for C++ source file in Nsight[/caption]
The Outline view shows the variables, functions and classes in the file currently open in the Editor in Nsight Eclipse. The Outline is filled for
.h files. However, I found that it is empty for
.cpp source files.
The Outline is not displayed for C++ source files because Nsight Eclipse has not mapped
.cpp file to the C++ language. This filetype-to-language mapping is necessary for the Outline to the displayed.
Go to Window -> Preferences -> C/C++ -> Language mappings. You will find that only C and C++ header files have been mapped here. Add a mapping from C++ Source File to the GNU C++ language. The Outline is immediately shown for C++ source files after this is applied.
Tried with: Nsight Eclipse 6.5 and Ubuntu 14.04