Add a way to enable -Wsystem-headers only for a specific module. This is useful for validating a module that would otherwise not see system header diagnostics without being flooded by diagnostics for unrelated headers/modules. It's relatively common for a module to be marked [system] but still wish to validate itself explicitly.
Details
Diff Detail
Event Timeline
LGTM
clang/include/clang/Basic/DiagnosticOptions.h | ||
---|---|---|
128 | Out of interest, is there an existing use-case for having multiple modules here, or is this just future-proofing? | |
clang/lib/Frontend/CompilerInstance.cpp | ||
1239–1240 | I assume llvm::is_contained() wouldn't be okay with the std::string and StringRef mismatch? |
clang/include/clang/Basic/DiagnosticOptions.h | ||
---|---|---|
128 | I'd imagine you'd typically have Framework and Framework_Private in there |
clang/include/clang/Basic/DiagnosticOptions.h | ||
---|---|---|
128 | Ah, good point. I am in fact doing that already and just forgot. |
Out of interest, is there an existing use-case for having multiple modules here, or is this just future-proofing?