Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clangd target in Makefile #69

Closed
freddie-freeloader opened this issue May 7, 2024 · 1 comment
Closed

Add clangd target in Makefile #69

freddie-freeloader opened this issue May 7, 2024 · 1 comment

Comments

@freddie-freeloader
Copy link

I am using clangd in my editor, and it's very useful for navigating the duckdb-codebase.

In the main repository (duckdb) there is a clangd target in the Makefile (link to the Makefile).

It would be super useful to have such a target definition in this project, too.


What I am using right now, is creating a debug build in build/debug and adding a .clangd-file with

CompileFlags:
  CompilationDatabase: build/debug
  Add: -Wno-unqualified-std-cast-call

This seems to work for the files in src/, but sadly not for all source files in duckdb/.


Unfortunately, I don't understand CMake and clangd good enough, to add the proper commands to the Makefile — so some help here would be very appreciated. ☺️

@freddie-freeloader
Copy link
Author

I close this issue in favor of this issue (duckdb/extension-ci-tools#18) which is probably more appropriately placed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant