Emacs etags - How to ignore strings before function definitions

83 Views Asked by At

I will try to be specific. I'm writing a C code for a specific processor. In my function definitions, I need to prepend the string:

section("sec_name")

so my functions have the following structure:

section("sec_name") int function_name(){ .... }

This cause etags to not recognize them as a function and they are not included in the TAGS table. Is it possible to tell etags to ignore the string

section("sec_name")

and tag the following character as a function? Thank you for any answers.

1

There are 1 best solutions below

1
juanleon On

In manual page of etags is described the option --regex=regexp, where you can define your own regular expressions for making etags find tags based on non standard declaration format.

There are examples too.