Skip to content

Commit bb79112

Browse files
authored
Updates for clangd 21 (SchemaStore#4981)
1 parent 833c4b9 commit bb79112

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/schemas/json/clangd.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,16 @@
459459
"type": "string",
460460
"minLength": 1,
461461
"examples": ["clang++"]
462+
},
463+
"BuiltinHeaders": {
464+
"description": "Whether Clangd should include its own built-in headers (like stddef.h), or use the system header found from the query driver.",
465+
"type": "string",
466+
"default": "Clangd",
467+
"enum": ["Clangd", "QueryDriver"],
468+
"enumDescriptions": [
469+
"Use builtin headers from clangd. This is the default.",
470+
"Use the headers extracted from the compiler via the --query-driver command line argument. If a query driver is not supplied or does not match the compiler, then the Clangd builtin headers will be the fallback."
471+
]
462472
}
463473
},
464474
"additionalProperties": false
@@ -664,6 +674,26 @@
664674
"`fo^` completes to `foo(int arg)`, with `int arg` selected"
665675
],
666676
"default": "FullPlaceholders"
677+
},
678+
"HeaderInsertion": {
679+
"description": "Whether to add #include directives when accepting code completions. Config equivalent of the CLI option --header-insertion.",
680+
"type": "string",
681+
"default": "IWYU",
682+
"enum": ["IWYU", "Never"],
683+
"enumDescriptions": [
684+
"Include what you use. Insert the owning header for top-level symbols, unless the header is already directly included or the symbol is forward-declared. This is the default.",
685+
"Never insert headers."
686+
]
687+
},
688+
"CodePatterns": {
689+
"description": "Change how completion will suggest code snippets and code patterns.",
690+
"type": "string",
691+
"default": "All",
692+
"enum": ["All", "None"],
693+
"enumDescriptions": [
694+
"All the code snippets and patterns are suggested.",
695+
"None of the code snippets and patterns are suggested."
696+
]
667697
}
668698
},
669699
"additionalProperties": false

0 commit comments

Comments
 (0)