Skip to content

Code formatting: clang-format, style guide, CMake scripts IDE group#105

Merged
trailcode merged 2 commits into
mainfrom
Trailcode/code_formating
May 15, 2026
Merged

Code formatting: clang-format, style guide, CMake scripts IDE group#105
trailcode merged 2 commits into
mainfrom
Trailcode/code_formating

Conversation

@trailcode
Copy link
Copy Markdown
Owner

Summary

  • Reformats src/ C/C++ sources to match updated .clang-format (LLVM + Allman, column limit, consecutive alignment, etc.).
  • Aligns ezycad_code_style.md with .clang-format so documented rules match the formatter.
  • Lists scripts/ under the IDE project (CMake source_group + HEADER_FILE_ONLY) alongside existing res/ / web tooling.
  • Fixes scripts/format-src.ps1 repo root detection (one Split-Path parent from scripts/, avoids resolving to ...\src\src).

Related: GitHub tracking for the script bug is #104.

Test plan

  • Configure/generate native build (e.g. Visual Studio); confirm scripts filter shows script files under the EzyCad target.
  • Build app and tests locally (same as CI).
  • From scripts/, run powershell -ExecutionPolicy Bypass -File .\format-src.ps1 and confirm clang-format touches files under (repo)/src only.

trailcode and others added 2 commits May 15, 2026 17:37
Keeps repo-local draft next to other GitHub issue templates; links to #104.

Co-authored-by: Cursor <cursoragent@cursor.com>
@trailcode trailcode merged commit b39186c into main May 15, 2026
1 check passed
@trailcode trailcode deleted the Trailcode/code_formating branch May 15, 2026 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant