Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #123231
| From | 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | How to get list of function declarations and definitions in lang C, C++ and D? |
| Date | 2026-01-03 01:20 +0100 |
| Organization | energokod.gda.pl |
| Message-ID | <mrr5m5Fm49rU7@mid.individual.net> (permalink) |
Hello! I want to get list of function declarations and definitions in lang C, C++ and D. I need: file, function name, type (declaration or definition), start line number, and end line number How can I get this? NOTE: Reg exps are not an option because there is impossible to know where function starts because it can be preceded by macros (for eg. macro declared Qt namespace). I this info for statical analysis before each commit - to check if my code follow my coding rules. Already I have some static analysis, but I want expand it. -- Just to crawl to the morning! Jacek Marcin Jaworski, Pruszcz Gd., woj. Pomorskie, Polska🇵🇱, EU🇪🇺; tel.: +48-609-170-742, najlepiej w godz.: 5:15-5:55 lub 17:15-17:55; <jmj@energokod.gda.pl>, gpg: 4A541AA7A6E872318B85D7F6A651CC39244B0BFA; Domowa s. WWW: <https://energokod.gda.pl>; Mini Netykieta: <https://energokod.gda.pl/MiniNetykieta.html>; Mailowa Samoobrona: <https://emailselfdefense.fsf.org/pl>.
Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread
How to get list of function declarations and definitions in lang C, C++ and D? 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> - 2026-01-03 01:20 +0100 Re: How to get list of function declarations and definitions in lang C, C++ and D? 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> - 2026-01-03 01:21 +0100 Re: How to get list of function declarations and definitions in lang C, C++ and D? scott@slp53.sl.home (Scott Lurndal) - 2026-01-03 18:58 +0000
csiph-web