Re: Treating function calls and function prototypes distinctly
Shigio YAMAGUCHI <[email protected]> Thu, 1 Oct 2020 13:44:14 +0900
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <CADJmJYo1iX6eOXqMe413hv5QPNu7x0PdzioLxkPrni3vVqNDvg@mail.gmail.com> |
Global only recognizes function definitions and references, and the distinction is left to the parsers of Global. The present C parser does not recognize function's prototype as a definition. To get the output you want, you need to rewrite the parser to recognize function's prototypes as definitions. Regards, Shigio 2020=E5=B9=B410=E6=9C=881=E6=97=A5(=E6=9C=A8) 6:15 Gautam Thaker <ghthaker@= gmail.com>: > > In C I have a use case where I want to find a function's definition, but= if one does not exist i want to find the function's prototype (aka declara= tion). At present, if I don't have a definition I cycle thru all call and p= rototype declarations, but not in any particular order. How can I restrict = my search to just function prototypes? > > Thanks. --=20 Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB