Lines Matching +full:user +full:- +full:level

1 //===--- TextDiagnosticPrinter.cpp - Diagnostic Printer -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
52 DiagnosticsEngine::Level Level, in printDiagnosticOptions() argument
57 // Handle special cases for non-warnings early. in printDiagnosticOptions()
59 OS << " [-ferror-limit=]"; in printDiagnosticOptions()
64 // report to the user what happened by inferring what the diagnostic engine in printDiagnosticOptions()
68 // If this is a warning which has been mapped to an error by the user (as in printDiagnosticOptions()
72 if (Level == DiagnosticsEngine::Error && in printDiagnosticOptions()
75 OS << " [-Werror"; in printDiagnosticOptions()
82 << (Level == DiagnosticsEngine::Remark ? "-R" : "-W") << Opt; in printDiagnosticOptions()
83 StringRef OptValue = Info.getDiags()->getFlagValue(); in printDiagnosticOptions()
90 // If the user wants to see category information, include it too. in printDiagnosticOptions()
109 void TextDiagnosticPrinter::HandleDiagnostic(DiagnosticsEngine::Level Level, in HandleDiagnostic() argument
112 DiagnosticConsumer::HandleDiagnostic(Level, Info); in HandleDiagnostic()
120 printDiagnosticOptions(DiagMessageStream, Level, Info, *DiagOpts); in HandleDiagnostic()
136 TextDiagnostic::printDiagnosticLevel(OS, Level, DiagOpts->ShowColors); in HandleDiagnostic()
138 OS, /*IsSupplemental=*/Level == DiagnosticsEngine::Note, in HandleDiagnostic()
139 DiagMessageStream.str(), OS.tell() - StartOfLocationInfo, in HandleDiagnostic()
140 DiagOpts->MessageLength, DiagOpts->ShowColors); in HandleDiagnostic()
151 TextDiag->emitDiagnostic( in HandleDiagnostic()
152 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()