#161 #ifdef with double closing brace, stops processing file

open
nobody
None
3
2007-04-10
2007-04-10
Robert Leland
No

In a file with the following declaration, ctags does not find any identifiers that come after this statement:

struct
{
timerptr FirstPtr;
timerptr LastPtr;
#ifdef __GNUC__
} TimerQueue = {0, 0};
#else
} TimerQueue = {0};
#endif

Moving the closing brace ahead of the #ifdef results in ctags processing the entire file.

This can be reproduced with the attached file, running ctags 5.6.

Discussion

  • Robert Leland
    Robert Leland
    2007-04-10

     
    Attachments
  • Robert Leland
    Robert Leland
    2007-04-10

    • priority: 5 --> 3