News for hackers. Stuff that matters.
Re:Show HN: ClangQL – Query C++ codebases using SQLite by marco_craveiro on Sunday May 23, 2021 @05:18AM (#27253553)
Pretty cool! One question though: if this was based on LSP in general, it could be generalised to any language, right? I wonder why they wired it to clangd specifically.
Re:Show HN: ClangQL – Query C++ codebases using SQLite by frabert on Sunday May 23, 2021 @05:22AM (#27253580)
I wired it to clangd specifically because of two main reasons:

- LLVM provides a remote interface to their index accessible through a gRPC connection

- The clangd protocol is very simple, and the bindings can be generated automatically

I don't know enough about LSP to say whether it would be a suitable protocol to use for this purpose