The #warning directive is standard in C++2b and C2x,
this adjusts the pedantic and extensions warning accordingly.
Details
Details
- Reviewers
aaron.ballman - Commits
- rG559f07b87211: [Clang] Adjust extension warnings for #warning
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM!
clang/include/clang/Basic/DiagnosticLexKinds.td | ||
---|---|---|
393–398 | <Not Your Problem>Someday, it would be nice if we made the tablegen for diagnostics a wee bit smarter so that we don't need to use two separate warning declarations for this situation. In fact, it'd be nice if tablegen could just automate this pattern given how often we use it and will be using it in the future.</Not Your Problem> | |
clang/lib/Lex/PPDirectives.cpp | ||
1264–1274 | Similarly (and also not your problem), it'd be nice to have a helper function so that we don't need this complicated of a dance to diagnose the situation. |
<Not Your Problem>Someday, it would be nice if we made the tablegen for diagnostics a wee bit smarter so that we don't need to use two separate warning declarations for this situation. In fact, it'd be nice if tablegen could just automate this pattern given how often we use it and will be using it in the future.</Not Your Problem>