Skip to content

Instantly share code, notes, and snippets.

@TuxSH
Created April 27, 2025 17:05
Show Gist options
  • Save TuxSH/0220d1235dace77f82738c9671801115 to your computer and use it in GitHub Desktop.
Save TuxSH/0220d1235dace77f82738c9671801115 to your computer and use it in GitHub Desktop.
my clang config
# Global user-level clangd config (see clangd official docs)
CompileFlags:
Add:
- '-Wno-unknown-pragmas' # ignore GCC-specific pragmas
- '-ferror-limit=0' # debug clangd failures without it stopping
Remove:
# For obvious reasons:
- '-Werror'
# Remove PCH includes as it triggers indirect GCC stdlib inclusion and clangd
# doesn't like that, at all. Also related: #45
- '-include'
# Other gcc options clang doesn't recognize
- '-mword-relocations'
- '-fconcepts-diagnostics-depth=*'
Diagnostics:
UnusedIncludes: None
"clangd.arguments": [
"--pretty",
"--background-index",
"--query-driver=C:\\devkitPro\\*\\bin\\*",
"--header-insertion=never",
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment