analyze_cpp
Run up to four Compiler Explorer analyzers on C++ code in a single compile-only request, returning bounded per-tool output with aggregate failure status and static-modeling caveats.
Instructions
Run up to four selected Compiler Explorer analyzers in one compile-only request and return normalized bounded per-tool output with aggregate failure status and static-modeling caveats. Compilation tools transmit supplied source and virtual files to the configured Compiler Explorer backend. Assembly differences are not performance measurements.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>",
"analyzers": "<analyzers>"
},
"name": "analyze_cpp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| source | Yes | ||
| window | No | ||
| filters | No | ||
| compiler | No | clang-latest | |
| analyzers | Yes | ||
| libraries | No | ||
| compiler_arguments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| compiler | Yes | ||
| warnings | No | ||
| analyzers | Yes | ||
| cache_hit | No | ||
| exit_code | Yes | ||
| timed_out | Yes | ||
| diagnostics | Yes | ||
| fingerprint | Yes | ||
| cache_eligible | No | ||
| backend_truncated | No | ||
| response_truncated | No |