Index | Thread | Search

From:
Mikhail Pchelin <misha@freebsd.org>
Subject:
Re: [NEW/wip]: compiledb —— tool for generating Clang's JSON Compilation Database
To:
Fabien Romano <fabienromano@gmail.com>
Cc:
ports@openbsd.org, karakin2000@gmail.com
Date:
Thu, 11 Jul 2024 17:46:30 +0300

Download raw body.

Thread
On Thu, Jul 11, 2024 at 09:04:22AM +0100, Fabien Romano wrote:
> 
> What about this one ?
> 
> Tool for generating Clang's JSON Compilation Database file for GNU make-based
> build systems. The generated compile_commands.json in combination with clangd
> (devel/clang-tools-extra) language server provides IDE-like features to editors
> such as code completion, compile errors, go-to-definition and more.

Thank you for picking this up.

New tarball with two README additions, first one from your previous mail
(about increasing the limits) second one to not scary new LSP users
about huge resources usage. Maybe they belong to clangd port, but I
think they have more chances to be noted here.

Reviews, thoughts, oks?

--- compiledb.orig/pkg/README   2024-07-11 17:27:58.549502000 +0300
+++ compiledb/pkg/README        2024-07-11 17:33:38.993127000 +0300
@@ -6,6 +6,13 @@
 but you can try to feed usual make output to it through a pipe, or --parse
 option.

+Running big project with clangd will require a lot of memory, you may consider
+increasing 'datasize' capabilities for you login class in /etc/login.conf.
+
+When you first run LSP enabled editor with fresh compile_commands.json, clangd
+will start building cache, it is required only for the first time and
+consequent startups will be much faster and less cpu intensive.
+
 Examples:

 1) To make compile_commands.json file for OpenBSD kernel use: