Created
April 27, 2025 17:05
-
-
Save TuxSH/0220d1235dace77f82738c9671801115 to your computer and use it in GitHub Desktop.
my clang config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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