3 ms·
I think TFAs approach actually makes things worse over time as now you need even more discipline to clean out no longer needed #inlcues from all source files us
by account42 5y ago
I think TFAs approach actually makes things worse over time as now you need even more discipline to clean out no longer needed #inlcues from all source files using a header when that header removes a dependency.
IME the best tools to solve the duplicated parsing (and compilation for templates) is to use IWYU [0] to cut down on unneeded includes and unity/jumbo builds to combine multiple translation units so common headers only need to be parsed once.
[0] https://include-what-you-use.org/ https://include-what-you-use.org/