It is intended to disable _all_ warnings, even those upgraded to
errors via -Werror=warningname or `#pragma clang diagnostic error'
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/lib/Basic/DiagnosticIDs.cpp | ||
---|---|---|
460–463 ↗ | (On Diff #169413) | I think this would be clearer if phrased the other way around:
|
466 ↗ | (On Diff #169413) | I think this change will also cause -w to disable all remarks. Was that your intent? |
Comment Actions
Fix to not disable remarks, reword comment, adjust implementation-of-module.m test-case.
clang/lib/Basic/DiagnosticIDs.cpp | ||
---|---|---|
460–463 ↗ | (On Diff #169413) | Reworded. |
466 ↗ | (On Diff #169413) | No, that seems like a bug. Remarks have their own completely-separate set of command-line options; I don't think -R should interact with -w. I've added a conditional here, and a test case ensuring that. |