This allows users to turn off warnings about this pragma specifically, while still receiving warnings about other ignored pragmas.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm, thanks!
lib/Parse/ParsePragma.cpp | ||
---|---|---|
2970 ↗ | (On Diff #138940) | One day, someone ought to refactor pragma parsing to be less verbose and error prone, but today is not that day. |
Comment Actions
Awesome, thanks! One nit below:
include/clang/Basic/DiagnosticParseKinds.td | ||
---|---|---|
973 ↗ | (On Diff #138940) | Is pragma clang optimize really what we want to recommend here? pragma optimize is used in practice mostly to work around cl.exe compiler bugs, or to disable inlining. In neither case, pragma clang optimize is what you'd really want to use. Maybe just omit everything after ; and instead add a blurb about this in DiagnosticDocs.td ? |
include/clang/Basic/DiagnosticParseKinds.td | ||
---|---|---|
973 ↗ | (On Diff #138940) | I'll drop the suggestion for now. Turns out it was not so easy to get a blurb into DiagnosticDocs or DiagnosticsReference. They're auto-generated but don't seem to have a good way to enter extra documentation. I'll just leave it for now. |