[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: |
Hirohito Kato |
Subject: |
Re: GNU GLOBAL skips indexing of inline functions in files having C++ support macros |
Date: |
Thu, 6 Nov 2008 06:50:48 -0800 (PST) |
Hello, thank you for confirmation.
This is my mistake. I believed that 'extern "{C,C++}"' must be
used with '{' and '}' braces.
Therefore, the patch can only recognize 'extern "*" {...}' expression,
not one like your code.
Now I have to think about this rule again.
Thank you for telling me a valuable information.
If someone find problems in my code, please let me know.
Regards,
Hideki IWAMOTO wrote:
>
> Hi.
>
> On Thu, 6 Nov 2008 03:26:49 -0800 (PST), Hirohito Kato wrote...
>> + warning("missing 'extern \"C\"' block.
>> [+%d %s](0x%x).", lineno,
>> curfile, c);
>
> I can not understand the meaning of this warning message.
> Is there any problem in the following source code?
>
> ===================
> $ cat externC.cc
> extern "C" void foo(void);
> extern "C++" void bar(void);
>
> int main(void){ foo(); bar(); return 0;}
> $ gtags -w
> Warning: missing 'extern "C"' block. [+1 ./externC.cc](0x812).
> Warning: missing 'extern "C"' block. [+2 ./externC.cc](0x812).
> Warning: missing 'extern "C"' block. [+1 ./externC.cc](0x812).
> Warning: missing 'extern "C"' block. [+2 ./externC.cc](0x812).
> Warning: missing 'extern "C"' block. [+1 ./externC.cc](0x812).
> Warning: missing 'extern "C"' block. [+2 ./externC.cc](0x812).
> ===================
>
> ----
> Hideki IWAMOTO address@hidden
>
>
> _______________________________________________
> 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-tp11539370p20362512.html
Sent from the Gnu - Global - Bugs mailing list archive at Nabble.com.
Re: GNU GLOBAL skips indexing of inline functions in files having C++ support macros, Shigio YAMAGUCHI, 2008/11/06