Back up project files before editing
statica_bootstrap_guardBack up existing C/C++ project files before substitution edits so they can be restored later. Call it right before editing hard-coded Makefiles or Vitis CMakeLists.txt.
Instructions
C/C++ only, and only when the substitution edits project files (guide type B: a hard-coded Makefile, Vitis CMakeLists.txt): keep the originals so statica_bootstrap_abort can restore them. Call right before editing. Do NOT call for command-line (A) or IDE/GUI (C) substitution, and never invent a file to satisfy the argument: a guarded file that did not exist is deleted on abort.
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": {
"projectDir": "<projectDir>",
"files": "<files>"
},
"name": "statica_bootstrap_guard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Existing project files about to be edited. | |
| projectDir | Yes | Absolute path of the project directory being analyzed (usually the session's working directory). |