mirror of
https://github.com/encounter/dtk-template.git
synced 2026-07-10 03:18:35 -07:00
* Implement support for generating clangd `compile_commands.json` config * Add example .clangd file * Tidy .gitignore and add entries for clangd and other things * couple things i forgot to remove * Change indent level to 2 * Centralize file type checking logic * Refactor flag replacments to fix `-lang=` flags not being handled * Move language flag fallback addition to `generate_build_ninja` * Remove file type flags from .clangd example * Remove clangd compiler defines option Projects which need it can define things themselves in .clangd * Move global clangd flags to tools/project.py & update vscode config --------- Co-authored-by: Luke Street <luke@street.dev>
24 lines
619 B
JSON
24 lines
619 B
JSON
{
|
|
"[c]": {
|
|
"files.encoding": "utf8",
|
|
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
|
|
},
|
|
"[cpp]": {
|
|
"files.encoding": "utf8",
|
|
"editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd"
|
|
},
|
|
"[python]": {
|
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
|
},
|
|
// "editor.tabSize": 2,
|
|
"files.autoSave": "onFocusChange",
|
|
"files.insertFinalNewline": true,
|
|
"files.trimFinalNewlines": true,
|
|
"files.associations": {
|
|
"*.inc": "c",
|
|
".clangd": "yaml"
|
|
},
|
|
// Disable C/C++ IntelliSense, use clangd instead
|
|
"C_Cpp.intelliSenseEngine": "disabled",
|
|
}
|