Skip to main content

format

Format C++ code using clang-format

Source facts

Repository
spiriMirror/libuipc
Last source activity
March 6, 2026 at 07:13
Detected SKILL.md language
English
Stars
335
Forks
68

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
format
description
Format C++ code using clang-format
disable-model-invocation
true
# Format ## Overview Format C++ code using the `.clang-format` file in the project root. ## Format Changed Files Format only the files changed relative to `main`: ```bash git diff --name-only --diff-filter=ACMR main -- '*.h' '*.hpp' '*.cpp' '*.inl' '*.cu' '*.cuh' | xargs clang-format -i ``` ## Format a Specific File ```bash clang-format -i <file> ``` ## Format All C++ Files in a Directory ```bash find <directory> -type f \( -name '*.h' -o -name '*.hpp' -o -name '*.cpp' -o -name '*.inl' -o -name '*.cu' -o -name '*.cuh' \) -exec clang-format -i {} + ```
View on GitHub