How to generate tag file for CUDA source files

The ctags program can be used to generate tag file for many programming languages. However, CUDA source files are not supported.

Tags can be generated for most entities of the CUDA programming language by asking ctags to process CUDA as C++. This can be done by passing this parameter to ctags: --langmap=C++:+.cu

This parameter can also be added to the ctags configuration file so that it used by default whenever ctags is invoked.

Tried with: Exuberant Ctags 5.9, CUDA 5.0 and Ubuntu 12.04 LTS

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