Skip to content

can't pre-process the macro but it works with Exuberant Ctags 5.8 #2356

Open
@mtozjh

Description

@mtozjh

(
Thank you for contacting us.

If you are reporting an issue with the parsing output, please fill
the following template. As your custom CTags configuration can
affect results, please always use --options=NONE as the first
option when running ctags.

Otherwise, delete the template and write your issue from scratch.
Examples may help developers understanding your issue better.

Use GitHub web interface and markdown notation.
Using mail results broken text rendering that makes
the developers go crazy.
)


The name of the parser:
c/c++

The command line you used to run ctags:

$ ctags --languages=C,C++,FORTRAN --recurse=no -n --fields=+iaSklnezs

The content of input file:

/* THIS IS AN EXAMPLE */

void FTNC(etmif_set_argv)(double *value, int *i)
{
  ETMIF_argv[*i] = *value;

  return;
}


The tags output you are not satisfied with:

FTNC /u/yanchen/.FAST_9995.src.c 6562;" kind:f line:6562 language:C typeref:typename:void signature:(etmif_set_argv) end:6666

The tags output you expect:

etmif_set_argv	/u/yanchen/.FAST_9995.src.c	6562;"	kind:f	line:6562	language:C	typeref:typename:void	signature:(double *value, int *i)	end:6666
...

The version of ctags:

$ ctags --version

Universal Ctags 0.0.0, Copyright (C) 2015 Universal Ctags Team
Universal Ctags is derived from Exuberant Ctags.
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
  Compiled: Dec  2 2019, 05:44:39
  URL: https://ctags.io/
  Optional compiled features: +wildcards, +regex, +iconv, +option-directory, +packcc


How do you get ctags binary:

(
Building it locally, via GITHUB latest version
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationFAQThis should be part of FAQ.multipassissues which can be fixed with multi-pass parsing feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions