[Top][All Lists]
[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: |
Shigio YAMAGUCHI |
Subject: |
Re: GNU GLOBAL skips indexing of inline functions in files having C++ support macros |
Date: |
Wed, 11 Jul 2007 21:55:09 +0900 |
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