Skip to content

Fix delete command to also remove .mm implementation files#50

Merged
dblock merged 1 commit intomasterfrom
fix/delete-mm-files
Apr 12, 2026
Merged

Fix delete command to also remove .mm implementation files#50
dblock merged 1 commit intomasterfrom
fix/delete-mm-files

Conversation

@dblock
Copy link
Copy Markdown
Owner

@dblock dblock commented Apr 12, 2026

Fixes #12.

Problem

The delete command only looked for .m implementation files when removing an unused header. In projects with Objective-C++ (.mm) files, the implementation file would be left behind.

Changes

  • Iterates over both .m and .mm extensions when looking for implementation files to delete
  • Updated the prompt text from (.m) to (.m/.mm)
  • Added tests covering the .mm case (simulation and --perform)

The delete command only looked for .m implementation files when deleting
an unused header, missing .mm (Objective-C++) files in mixed projects.
Also updated the prompt text from (.m) to (.m/.mm).

Fixes #12.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dblock dblock force-pushed the fix/delete-mm-files branch from a975773 to 95fec9f Compare April 12, 2026 14:46
@github-actions
Copy link
Copy Markdown

Danger Report

No issues found.

View run

@dblock dblock merged commit 5553b1a into master Apr 12, 2026
5 checks passed
@dblock dblock deleted the fix/delete-mm-files branch April 12, 2026 14:47
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.

Should scan also Pre-Compiled Headers, too

1 participant