Skip to content

Find headers referenced with #include - #59

Merged
dblock merged 1 commit into
dblock/import-without-spacefrom
dblock/include
Nov 25, 2026
Merged

dblock merged 1 commit into
dblock/import-without-spacefrom
dblock/include

Conversation

@dblock

@dblock dblock commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Treats #include "header.h" and #include <Foo/header.h> like #import, and scans .c, .cc, and .cpp files for references, so headers used only from C or C++ sources are not reported as unused.

Closes #15.

Stacked on #58.

Validation: bundle exec rake (RuboCop and RSpec, 46 examples, 0 failures). The new include fixture spec fails without the change.

This PR was written by an AI (Claude) acting on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21jbMhZrzCZWr9QtJeM

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Danger Report

No issues found.

View run

Treat `#include "header.h"` and `#include <Foo/header.h>` like `#import`, and
scan `.c`, `.cc`, and `.cpp` files for references.

Closes #15.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21jbMhZrzCZWr9QtJeM
@dblock
dblock merged commit 09c7270 into master Nov 25, 2026
5 of 10 checks passed
@dblock
dblock deleted the dblock/include branch November 25, 2026 14:03
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.

Support C 'imports'

1 participant