#24 --format=1 doesn't work with -x option.

closed
None
5
2002-03-07
2002-02-25
Anonymous
No

[CURRENT SPEC]

The --format=1 option doesn't work with -x option.

% ctags --format=1 -x main.c
ANCHOR_BUF_SIZE macro 47 main.c #
define AN...
ANCHOR_SIZE macro 48 main.c #
define AN...
CLOCKS_PER_SEC macro 440 main.c #
define CL...
CLOCKS_PER_SEC macro 444 main.c #
define CL...
CLOCK_AVAILABLE macro 438 main.c #
define CL...

[SPEC SHOULD BE]

I think it should be like this:

% ctags --format=1 -x main.c
ANCHOR_BUF_SIZE 47 main.c # define AN...
ANCHOR_SIZE 48 main.c # define AN...
CLOCKS_PER_SEC 440 main.c # define CL...
CLOCKS_PER_SEC 444 main.c # define CL...
CLOCK_AVAILABLE 438 main.c # define CL...

Discussion

  • Darren Hiebert

    Darren Hiebert - 2002-03-07
    • assigned_to: nobody --> dhiebert
     
  • Darren Hiebert

    Darren Hiebert - 2002-03-07
    • status: open --> closed
     
  • Darren Hiebert

    Darren Hiebert - 2002-03-07

    Logged In: YES
    user_id=38016

    There is no possible interaction between --format and -x, so
    something else must be involved here. I ran ctags-5.2.3 on
    main.c in that distribution and was unable to replicate your
    output.

    What platform are you running on?

     
  • Nobody/Anonymous

    Logged In: NO

    Sorry for my short description.

    Traditional -x format doesn't have type name like 'macro'.

    ANCHOR_BUF_SIZE 47 main.c #define ANCHOR_BUF_SIZE

    This is new format which your ctags generates. It has type
    name 'macro'.

    ANCHOR_BUF_SIZE macro 47 main.c #define ANCHOR_BUF_SIZE
    ~~~~~

    I think --format=1 should generates traditional format which
    doesn't have
    type name.

     

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

Sign up for the SourceForge newsletter:





No, thanks