bug-global
[Top][All Lists]
Advanced

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

Re: GNU GLOBAL skips indexing of inline functions in files having C++ su


From: Hirohito Kato
Subject: Re: GNU GLOBAL skips indexing of inline functions in files having C++ support macros
Date: Fri, 31 Oct 2008 03:00:19 -0700 (PDT)

Hello,

I have a question of this issue.
Is this problem difficult to be fixed?

Though the priority of it seems to be very low, I would like to know
 why the problem isn't fixed for a long time.
(It is important problem for me...)

I appreciate it if you could answer my question.

Regards,
-------------
Hirohito Kato


Shigio Yamaguchi wrote:
> 
> Hello,
> You are right.
> I will fix the bug when there is time.
> 
> Thank you for your report!
> 
>> GNU GLOBAL skips definitions of static inline functions in C-header files
>> having the standard entry and exit macros for C++ support.
>> 
>> In the example code
>> 
>> #ifdef __cplusplus
>> extern "C" {
>> #endif
>> static inline int inc1(int x) { return x+1; }
>> #ifdef __cplusplus
>> }
>> #endif
>> 
>> the function inc1 will not be indexed. The problem vanishes when I
>> remove extern
>> "C" { and } from the file.
> --
> Shigio YAMAGUCHI <address@hidden> - Tama Communications Corporation
> PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
> 
> 
> _______________________________________________
> Bug-global mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-global
> 
> 

-- 
View this message in context: 
http://www.nabble.com/GNU-GLOBAL-skips-indexing-of-inline-functions-in-files-having-C%2B%2B-support-macros-tp11539370p20262842.html
Sent from the Gnu - Global - Bugs mailing list archive at Nabble.com.





reply via email to

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