[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: exclude #ifdef regions when using gtags

From: Shigio Yamaguchi
Subject: Re: exclude #ifdef regions when using gtags
Date: Thu, 10 Mar 2005 09:18:43 +0900

> is there a way to instruct gtags to disregard parts of source files that are
> encapsulated by a certain #ifdef/'endif preprocessor command? In my case the
> sources I got contain plain text that is used for a proprietary
> documentation tool. The text is encapsulated in
>    #endif
> These #ifdef/#endif are not nested.
> I would hate to remove these comments from the source files because they
> contain valuable information that then wouldn't show up in the browsable
> source files created by htags. I just want gtags to ignore them.

You can hack libutil/token.c.
About C and C++, comment processing is done in nexttoken().
Good luck.
Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]