Automated rollback of commit
*** Reason for rollback ***
Causing unexplained breakages.
*** Original change description ***
Fix oversight in recent cleanup. We should filter discovered headers whenever
dotd file scanning is not used so that we can properly warn on undeclared
inclusions.
RELNOTES: None.
@@ -569,7 +569,7 @@ public class CppCompileAction extends AbstractAction implements IncludeScannable
.setCmdlineIncludes(getCmdlineIncludes(options))
.build());
- if (getDotdFile() == null) {
+ if (useHeaderModules) {
// If we aren't looking at .d files later, remove undeclared inputs now.
additionalInputs =
filterDiscoveredHeaders(actionExecutionContext, additionalInputs, headerInfo);
