Skip to content

Instantly share code, notes, and snippets.

@idoleat
Created July 1, 2024 13:28
Show Gist options
  • Save idoleat/ea930c55c5205dd6be6fbf39fab29487 to your computer and use it in GitHub Desktop.
Save idoleat/ea930c55c5205dd6be6fbf39fab29487 to your computer and use it in GitHub Desktop.
clangd configuration file for Linux kernel/kernel module development. Put it at the root of the project, or simple home directory hehehehe
CompileFlags:
// Add: -Wno-unknown-warning-option
Remove: [-mpreferred-stack-boundary=3, -mindirect-branch=thunk-extern, -mindirect-branch-register, -fno-allow-store-data-races, -fconserve-stack, -mrecord-mcount, -fmin-function-alignment=16]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment