doctor#
Check tool availability and minimum versions, and validate the project layout.
clibra doctor
Run this before starting a new project or after setting up a new machine. It checks every tool LIBRA can use, reports which are missing or below the minimum version, and validates that the project layout follows the expected conventions.
Output#
Each checked item is reported with one of three symbols:
✓— present and meets the minimum version requirement.⚠— optional tool or recommended convention; missing it limits specific features but does not prevent basic builds.✗— required tool; must be resolved before proceeding.
Example output:
Checking LIBRA environment...
Tools:
✓ cmake -> /usr/bin/cmake (3.31.2)
✓ ninja -> /usr/bin/ninja (1.11.1)
✓ gcc -> /usr/bin/gcc (13.2.0)
✓ g++ -> /usr/bin/g++ (13.2.0)
⚠ clang not found (optional)
⚠ gcovr not found (optional)
⚠ cppcheck not found (optional)
⚠ clang-tidy not found (optional)
Project structure:
✓ CMakePresets.json exists
✓ src/ exists
⚠ tests/ does not exist
⚠ docs/Doxyfile.in does not exist
Checked 14 items: 0 errors, 5 warnings, 9 ok
clibra doctor exits non-zero if any ✗ items are found. Warnings
do not affect the exit code.
Checked tools#
Tool |
Min version |
Required for |
|---|---|---|
|
3.31 |
Everything. Required. |
|
any |
Recommended generator. Optional. |
|
any |
Alternative generator. Optional. |
|
9 |
C/C++ compilation. Optional (one compiler family required). |
|
17 |
C/C++ compilation, analysis, formatting. Optional. |
|
2025.0 |
Intel LLVM compilation. Optional. |
|
5.0 |
GNU coverage reports. Optional. |
|
2.1 |
Static analysis. Optional. |
|
17 |
Static analysis and auto-fixing. Optional. |
|
17 |
Code formatting. Optional. |
|
any |
Build caching. Optional. |
Checked project structure#
Path |
Notes |
|---|---|
|
Recommended. Required for preset-based workflows. |
|
Optional. Personal default preset configuration. |
|
Recommended. Required for source file auto-discovery. |
|
Recommended. Required for header auto-discovery. |
|
Recommended. Required for test auto-discovery. |
|
Optional. Required if |
|
Optional. Required for Doxygen API doc generation. |
|
Optional. Required for Sphinx doc generation. |
Flag reference#
clibra doctor#
Check tool availability and minimum versions, and validate the project layout
Usage: clibra doctor [OPTIONS]