diff options
Diffstat (limited to 'clang/lib/Driver/TextDiagnosticBuffer.cpp')
| -rw-r--r-- | clang/lib/Driver/TextDiagnosticBuffer.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/clang/lib/Driver/TextDiagnosticBuffer.cpp b/clang/lib/Driver/TextDiagnosticBuffer.cpp index b3e21e1b153..1df93750f0d 100644 --- a/clang/lib/Driver/TextDiagnosticBuffer.cpp +++ b/clang/lib/Driver/TextDiagnosticBuffer.cpp @@ -26,6 +26,11 @@ void TextDiagnosticBuffer::HandleDiagnostic(Diagnostic &Diags,                                              unsigned) {    switch (Level) {    default: assert(0 && "Diagnostic not handled during diagnostic buffering!"); +  case Diagnostic::Note: +    Notes.push_back(std::make_pair(Pos.getLocation(), +                                   FormatDiagnostic(Diags, Level, ID,  +                                                    Strs, NumStrs))); +    break;    case Diagnostic::Warning:      Warnings.push_back(std::make_pair(Pos.getLocation(),                                        FormatDiagnostic(Diags, Level, ID,  | 

