"But when would you have a completely empty diagnostic message", you ask dear reader?
That is when there is an empty "#warning" in code.
rdar://106155415
Paths
| Differential D145256
[clang/Diagnostic] Use `optional` to disambiguate between a `StoredDiagMessage` that is not set vs set as empty string ClosedPublic Authored by akyrtzi on Mar 3 2023, 10:48 AM.
Details Summary "But when would you have a completely empty diagnostic message", you ask dear reader? rdar://106155415
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 3 2023, 11:20 AM Closed by commit rG5e035651fd3a: [clang/Diagnostic] Use `optional` to disambiguate between a `StoredDiagMessage`… (authored by akyrtzi). · Explain WhyMar 3 2023, 12:49 PM This revision was automatically updated to reflect the committed changes. Comment Actions
Is this observable from a clang command line tool? Be nice to have a lit test. Comment Actions
Added lit test here: https://reviews.llvm.org/D145473
Revision Contents
Diff 502231 clang/include/clang/Basic/Diagnostic.h
clang/lib/Basic/Diagnostic.cpp
clang/unittests/Basic/DiagnosticTest.cpp
|