Skip to content

C/C++: a new field representing CPreProcessor context #4309

@masatake

Description

@masatake

For input.c:

#ifdef X
int v;
#else
float v;
#endif

What I expect:

v	foo.c	/^int v;$/;"	kind:variable	cppcontext:#ifdef X
v	foo.c	/^float v;$/;"	kind:variable	cppcontext:#else X

ctags has an implementation of an interval tree. So I guess implementing the cppcontext field is not so hard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions