News for hackers. Stuff that matters.
Re:BCHS: OpenBSD, C, httpd and SQLite web stack by the_only_law on Tuesday January 18, 2022 @10:41PM (#29989687)
I just wish there were better tools for navigating C codebases.

There’s been more than one time where I’m in some large auto tools based project trying to figure something out and there’s a call out to some dependencies I have no idea of.

Also many of the projects lack and sort of documentation or source code commenting. These aren’t someones pet project either. One of them was from a notable name in the open source community and the other one was a de-facto driver in a certain hardware space.

Re:BCHS: OpenBSD, C, httpd and SQLite web stack by pjmlp on Wednesday January 19, 2022 @03:35AM (#29991247)
Using an IDE like VS/Clion/CDT/.. would already be of help.

Then there are tools like SourceGraph, CppDepend among others.

Re:BCHS: OpenBSD, C, httpd and SQLite web stack by Too on Wednesday January 19, 2022 @02:55PM (#29999115)
Use clang to generate a compilation db. Most IDEs support this format out of the box, otherwise via plugin or routed through youcompleteme.

https://clang.llvm.org/docs/JSONCompilationDatabase.html

Re:BCHS: OpenBSD, C, httpd and SQLite web stack by loeg on Wednesday January 19, 2022 @12:35AM (#29990353)
Have you tried ctags for navigation? Or clang-lsp?
Re:BCHS: OpenBSD, C, httpd and SQLite web stack by jhallenworld on Wednesday January 19, 2022 @12:54AM (#29990443)
Try cscope.