HomePhabricator

[NFC] Refactor DiagnosticBuilder and PartialDiagnostic

Authored by yaxunl on Sep 23 2020, 1:16 PM.

Description

[NFC] Refactor DiagnosticBuilder and PartialDiagnostic

PartialDiagnostic misses some functions compared to DiagnosticBuilder.

This patch refactors DiagnosticBuilder and PartialDiagnostic, extracts
the common functionality so that the streaming << operators are
shared.

Differential Revision: https://reviews.llvm.org/D84362

Details