Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #123231 > unrolled thread
| Started by | 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> |
|---|---|
| First post | 2026-01-03 01:20 +0100 |
| Last post | 2026-01-03 18:58 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.c++
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
| From | 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> |
|---|---|
| Date | 2026-01-03 01:20 +0100 |
| Subject | How to get list of function declarations and definitions in lang C, C++ and D? |
| Message-ID | <mrr5m5Fm49rU7@mid.individual.net> |
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>.
[toc] | [next] | [standalone]
| From | 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> |
|---|---|
| Date | 2026-01-03 01:21 +0100 |
| Message-ID | <mrr5ofFm49rU8@mid.individual.net> |
| In reply to | #123231 |
W dniu 3.01.2026 o 01:20, 🇵🇱Jacek Marcin Jaworski🇵🇱 pisze: Is: > I this info for statical analysis before each commit Shoud be: I need this info for statical analysis before each commit -- 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>.
[toc] | [prev] | [next] | [standalone]
| From | scott@slp53.sl.home (Scott Lurndal) |
|---|---|
| Date | 2026-01-03 18:58 +0000 |
| Message-ID | <uFd6R.1150113$ACS3.348416@fx17.iad> |
| In reply to | #123231 |
=?UTF-8?B?8J+HtfCfh7FKYWNlayBNYXJjaW4gSmF3b3Jza2nwn4e18J+HsQ==?= <jmj@energokod.gda.pl> writes: >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 https://cscope.sourceforge.net/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.c++
csiph-web