Investigate include order issue with InputBuffer, readData #5986

Open
opened 2026-01-31 00:27:12 +00:00 by claunia · 1 comment
Owner

Originally created by @zadjii-msft on GitHub (Jan 16, 2020).

Found in #4213.

I had to fwddecl InputBuffer, because I think there's a include order problem with in InputBuffer.hpp and readData.hpp.

readData.hpp uses InputBuffer in a bunch of places, but doesn't include it first

InputBuffer.hpp includes readData.hpp before it defines InputBuffer

So if you try to

#include ".../host/inputBuffer.hpp"

You'll get a compilation error, because it'll include readData, which will assume InputBuffer is defined, which it isn't yet.

Originally created by @zadjii-msft on GitHub (Jan 16, 2020). Found in #4213. I had to fwddecl `InputBuffer`, because I _think_ there's a include order problem with in `InputBuffer.hpp` and `readData.hpp`. `readData.hpp` uses `InputBuffer` in a bunch of places, but doesn't include it first `InputBuffer.hpp` includes `readData.hpp` before it defines `InputBuffer` So if you try to ```c++ #include ".../host/inputBuffer.hpp" ``` You'll get a compilation error, because it'll include `readData`, which will assume `InputBuffer` is defined, which it isn't yet.
claunia added the Help WantedProduct-ConhostIssue-TaskPriority-3Area-CodeHealth labels 2026-01-31 00:27:12 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 23, 2020):

Triaged.

@DHowett-MSFT commented on GitHub (Jan 23, 2020): Triaged.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5986