diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:21:28 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-04-20 21:21:28 +0000 |
| commit | d44a35e87e405ae98902dc491ba70ed82f58f592 (patch) | |
| tree | c943b2e42186cf1629dc15a3b6604514996993ee /source/Expression/DiagnosticManager.cpp | |
| parent | 74a628f776edb588bff8f8f5cc16eac947c9d631 (diff) | |
Notes
Diffstat (limited to 'source/Expression/DiagnosticManager.cpp')
| -rw-r--r-- | source/Expression/DiagnosticManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Expression/DiagnosticManager.cpp b/source/Expression/DiagnosticManager.cpp index 5ade0817b1e2..ae20feb910dd 100644 --- a/source/Expression/DiagnosticManager.cpp +++ b/source/Expression/DiagnosticManager.cpp @@ -79,3 +79,12 @@ size_t DiagnosticManager::PutString(DiagnosticSeverity severity, AddDiagnostic(str, severity, eDiagnosticOriginLLDB); return str.size(); } + +void DiagnosticManager::CopyDiagnostics(DiagnosticManager &otherDiagnostics) { + for (const DiagnosticList::value_type &other_diagnostic: + otherDiagnostics.Diagnostics()) { + AddDiagnostic( + other_diagnostic->GetMessage(), other_diagnostic->GetSeverity(), + other_diagnostic->getKind(), other_diagnostic->GetCompilerID()); + } +} |
