No outline for C++ source file in Nsight Eclipse

Add the mapping for C++ source file in Nsight
Add the mapping for C++ source file in Nsight

Problem

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 .cu and .h files. However, I found that it is empty for .cpp source files.

Solution

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s