[Top][All Lists]

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

Bug in global

From: Michael Tocci
Subject: Bug in global
Date: Tue, 25 Nov 2008 16:01:48 -0500


We're trying to use global on our source code, and I found a case where a tag was not being created for a function.  It looks like it has something to do with a #define being on a line above the function.  Here's the version we are using,

/testprogs/global_test>gtags --version
gtags - GNU GLOBAL 5.7.3
Copyright (c) 2008 Tama Communications Corporation
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
This is also commercial (for-profit) software based on BOKIN model.
Please see the donation page <http://www.gnu.org/software/global/donation.html>.

And here's the source file that is giving us problems, I narrowed it down to 2 functions and a #define.  Also, this is a .cpp file.


#define IS_SF_BLOCK(block) (utStrcmp(gmi_type_string((block)),"SF")==0)

bool BlockIsSF(const slBlock *block) {

bool BlockIsChannel(const slBlock *block) {

If you run gtags, and then "global BlockIsSF", it says that the tag is not found.  If I comment out the #define, it finds both functions.

Let me know if you need any more info.


reply via email to

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