One of the -Wincomplete-umbrella warnings diagnoses when a header is present in the directory but it's not present in the umbrella header. Currently, this warning only happens on top level modules; any submodule using an umbrella header does not get this warning. Fix that by also considering the submodules.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM after a couple of changes inline.
lib/Lex/PPLexerChange.cpp | ||
---|---|---|
290–292 ↗ | (On Diff #96857) | I think you can take Mod by reference. Also: I'm not sure if it can be const, but please check (also, SmallVectorImpl<const Module*>) and use const if possible. |
299 ↗ | (On Diff #96857) | Seems better to take Mod by reference here. Also, const if possible. |
Comment Actions
Oh, and it would be nice to split out Preprocessor::diagnoseMissingHeaderInUmbrellaDir in a separate NFC commit ahead of time.