https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98968
Bug ID: 98968
Summary: complete include graph is hard to determine
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nathan at gcc dot gnu.org
Target Milestone: ---
Due to the preprocessor's optimization of idempotent headers, all but the first
are elided from the preprocessed output's location information. Add an option
to disable that optimization (or equivalent), so that subsequent inclusion
creates a push/pop location pair.
Determining the complete graph is useful for determining a header-unit build
order.
A patch exists on the devel/c++-modules branch 65165eb3f83