#95 #include does not work with macro

open
semantic (53)
5
2009-08-30
2009-08-30
Anonymous
No

Semantic does not recognize following as include:

main.c:
#define FOO "inc.h"
#include FOO

inc.h:
int test(int arg);

"Summarize includes" reports:
"This file contains 1 tags, 0 of which are includes."

Discussion

  • Eric M. Ludlam

    Eric M. Ludlam - 2009-08-30

    #includes are handled via regexp, not a series of lexical tokens. The C lexer will need to be rebuilt to avoid the cheat in there right now.

     
  • Eric M. Ludlam

    Eric M. Ludlam - 2009-08-30
    • assigned_to: nobody --> zappo
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks