Skip to content

Commit f21ef04

Browse files
authored
Support /cpp/cmakePreset preset field for qodana.yaml (SchemaStore#4874)
* Add test * Support /cpp/cmakePreset preset field for Qodana
1 parent e10983b commit f21ef04

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/schemas/json/qodana-1.0.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,18 @@
293293
}
294294
]
295295
},
296+
"cpp": {
297+
"description": "Configuration for Qodana for C/C++",
298+
"type": "object",
299+
"properties": {
300+
"cmakePreset": {
301+
"description": "Name of a specific CMake preset to use during analysis",
302+
"type": "string",
303+
"minLength": 1
304+
}
305+
},
306+
"additionalProperties": false
307+
},
296308
"licenseOverride": {
297309
"type": "object",
298310
"description": "Specifies the license of a dependency or project ",
@@ -508,6 +520,10 @@
508520
"$ref": "#/definitions/dotnet",
509521
"description": "The configuration for .NET solutions and projects"
510522
},
523+
"cpp": {
524+
"$ref": "#/definitions/cpp",
525+
"description": "Configuration for Qodana for C/C++"
526+
},
511527
"projectJDK": {
512528
"description": "The JDK to use for the project",
513529
"type": "string"

src/test/qodana-1.0/cpp.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# yaml-language-server: $schema=../../schemas/json/qodana-1.0.json
2+
version: '1.0'
3+
cpp:
4+
cmakePreset: my-preset

0 commit comments

Comments
 (0)