|
From: | Shigio YAMAGUCHI |
Subject: | Re: gtags behaves strange when parsing code with the right curly brace in #else clause. |
Date: | Thu, 6 Aug 2015 10:15:18 +0900 |
Hi,My gtags behaves strange when parsing this code:1 #define FOO23 int foo1()4 {5 if (1)6 {7 #ifndef FOO8 #else9 }10 #endif11 return 1;12 }1314 int foo2()15 {16 return 1;17 }The function foo2 was ignored:$ gtags --verbose[Wed Aug 05 21:32:12 CST 2015] Gtags started.[Wed Aug 05 21:32:12 CST 2015] Creating 'GTAGS' and 'GRTAGS'.[1] extracting tags of test.c[Wed Aug 05 21:32:12 CST 2015] Done.$ gtags -d GTAGS__.COMPNAME __.COMPNAME__.COMPRESS __.COMPRESS ddefine ttypedef__.VERSION __.VERSION 6FOO 1 @n 1 address@hidden @nfoo1 1 @n 3 int @n()My gtags version is 6.5:$ gtags --versiongtags (GNU GLOBAL) 6.5Copyright (c) 2015 Tama Communications CorporationLicense GPLv3+: GNU GPL version 3 or later <http://www.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.$ cat /etc/issueUbuntu 15.04 \n \l$ uname -aLinux 7 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:15 UTC 2015 x86_64 x86_64 x86_64 GNU/LinuxI think it's the same error when gtags parsing MySQL sql_parse.cc at line 1983 to line 2002.All functions after line 2001 was ignored.I'm sorry that my English is poor. If you need more information, please let me know.Thanks for your hard on GNU global!
_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global
block.patch
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |