compiledb
Tool for generating Clang's JSON Compilation Database files for make-based build systems. (by nickdiego)
project-cmake
Emacs extension to the project package for supporting CMake as build system. (by juanjosegarciaripoll)
compiledb | project-cmake | |
---|---|---|
6 | 5 | |
1,376 | 9 | |
- | - | |
0.0 | 0.0 | |
4 months ago | 8 months ago | |
Python | Emacs Lisp | |
GNU General Public License v3.0 only | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
compiledb
Posts with mentions or reviews of compiledb.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-17.
-
Eglot + clangd not working for NetHack code base
An update: I am now able to make everything work by generating `compile_commands.json` using compiledb. I'm aware that there is another tool Bear but for some reason it generates an empty `compile_commands.json` file for me.
-
STM32CubeIDE extract compile_commands.json
I have tried compiledb as well, but it currently fails to correctly get the backslashes correctly on Windows, as noted in this issue.
-
Lsp-mode when I can't generate compile_commands.json
There is also this tool which claims to support Windows. However:
-
clangd beginner problem
There is also compiledb https://github.com/nickdiego/compiledb that works directly with your make file to generate the compile_commands.json.
-
How can I get vim-lsp to recognize OpenCV?
Have you generated a compile_commands.json? They're necessary for your LSP provider to know which paths to search for headers. They're generated by default if you're using CMake (I believe), otherwise check out compiledb or Bear.
-
CLion users: Is CLion a good choice for development in an old project that can only be built with a complicated mess of makefiles?
If you can get compiledb to work with your make project and generate the correct file, it should be able to figure out project quite well
project-cmake
Posts with mentions or reviews of project-cmake.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-15.
-
Package to integrate with CMake and make it easier to compile/run
You might want to consider this software I wrote https://github.com/juanjosegarciaripoll/project-cmake
-
clangd beginner problem
If you develop c++ you should use CMake. It handles many aspect of the language such as library dependencies, static checks, etc, very graciously. In that case you can use this https://github.com/juanjosegarciaripoll/project-cmake to handle both the project and clangd
- project-cmake: Emacs extension to the project package for supporting CMake as build system.
-
Emacs + project + eglot + cmake + clangd language serv
My experience is that eglot identifies properly the project. Indeed, it uses internally Emacs' project package. However, it does not pass information about the project to the language servers. project-cmake's approach is a workaround to complement Eglot's arguments with information that is specific to one language server, but can be extended to others without much difficulty. I have also added a module to project-cmake that defines project-local variables which can help in doing a separate customisation for each project, also of the language servers themselves.
What are some alternatives?
When comparing compiledb and project-cmake you can also consider the following projects:
Bear - Bear is a tool that generates a compilation database for clang tooling.
cmake-integration - Integrates Emacs with CMake such that one can easily choose a target to compile/run
conan - Conan - The open-source C and C++ package manager
Cython - The most widely used Python to C compiler
gcovr - Generate code coverage reports with gcc/gcov
scan-build - Clang's scan-build re-implementation in python
pmbuild - A simple, configurable and extendible build system for gamedev.
run-clang-format - A wrapper script around clang-format, suitable for linting multiple files and to use for continuous integration
NetHack - Official NetHack Git Repository
compdb - The compilation database Swiss army knife