[PATCH] D84362: [NFC] Refactor DiagnosticBuilder and PartialDiagnostic
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 15 07:13:42 PDT 2020
yaxunl marked 4 inline comments as done.
yaxunl added inline comments.
================
Comment at: clang/include/clang/Basic/Diagnostic.h:1065
+///
+class StreamableDiagnosticBase {
+public:
----------------
rjmccall wrote:
> I think I would prefer `StreamingDiagnostic` as the class name here.
renamed
================
Comment at: clang/include/clang/Basic/PartialDiagnostic.h:66
+ return *this;
+ }
+
----------------
rjmccall wrote:
> Why are these template operators necessary? The LHS of the `<<` should convert to a base reference type just fine.
There are lots of usage patterns expecting the derived class after streaming, e.g.
```
void foo(PartialDiagnostic& PD);
foo(PD << X << Y);
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84362/new/
https://reviews.llvm.org/D84362
More information about the cfe-commits
mailing list