You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR converts leading spaces (and mixed whitespace) to tabs across 425 C++ files in the Generals/ directory. All C++ file changes are purely whitespace — git diff -w is empty for those files — generated by a tree-sitter-based Python script. The new scripts/cpp/convert_leading_spaces_to_tabs.py file is included for reference as the script that produced the changes, though the PR description notes it is "not intended to be merged."
Confidence Score: 5/5
Safe to merge — all 425 C++ file changes are verified whitespace-only (git diff -w is empty for them), with no functional impact.
Every C++ change is a pure space-to-tab indentation conversion confirmed by git diff -w. The only substantive addition is the new Python script; the single finding (script included despite description saying otherwise) is P2 and does not block merge.
scripts/cpp/convert_leading_spaces_to_tabs.py — decide whether to keep or remove it from the branch.
Vulnerabilities
No security concerns identified.
Important Files Changed
Filename
Overview
scripts/cpp/convert_leading_spaces_to_tabs.py
New Python utility script (396 lines) that drives the whitespace conversion; PR description says it is not intended to be merged yet it is included as a new file in the changeset.
Whitespace-only change: leading spaces to tabs; no functional modifications.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: scripts/cpp/convert_leading_spaces_to_tabs.py
Line: 1
Comment:
**Script included despite "not intended to be merged"**
The PR description says this script is "not intended to be merged — it shows how the changes were generated," but the file is a new addition in the changeset and will land on `main` if the PR is accepted. If the intent is to keep it out of the codebase, remove it from the branch; if it's meant to be retained for future use by contributors, the description should say so.
How can I resolve this? If you propose a fix, please make it concise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
git diff -wis empty)Access specifiers (
public:/private:/protected:) are placed at the classbrace level, matching the existing codebase convention.
Script
The formatting script is included in the PR for reference but is not intended
to be merged — it shows how the changes were generated.
See
scripts/cpp/convert_leading_spaces_to_tabs.pyfor details.Part 2 of 4 — Generals/ (425 files).
See also: #2561, #2563, #2564.