Skip to main content

format

Format C++ code using clang-format

Datos de origen

Repositorio
spiriMirror/libuipc
Última actividad en el origen
18 de octubre de 2026 a las 08:32
Idioma detectado de SKILL.md
inglés
Estrellas
351
Forks
77

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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 Use the repository helper with clang-format 18 (the same major as CI): ```bash python scripts/format_changed.py python scripts/format_changed.py --check ``` The helper selects committed C++ changes from the merge base of `origin/main` to `HEAD`; use `--base <ref>` when a different base is intended. Format newly edited, uncommitted files explicitly before staging them. Formatter lookup and the pinned Windows executable are documented in [the build guide](../../../agent_docs/07-build-test-workflow.md). ## Format a Specific File ```bash clang-format-18 -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-18 -i {} + ```
Ver en GitHub