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 duckdb_extension.Makefile #18

Open
freddie-freeloader opened this issue May 11, 2024 · 0 comments
Open

Add clangd target in duckdb_extension.Makefile #18

freddie-freeloader opened this issue May 11, 2024 · 0 comments

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 duckdb_extension.Makefile — so some help here would be very appreciated. ☺️

@freddie-freeloader freddie-freeloader changed the title Add clangd target in Makefile Add clangd target in duckdb_extension.Makefile May 11, 2024
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