Lines Matching full:diagnostic
1 //===- Diagnostic.cpp - C Language Family Diagnostic Handling -------------===//
9 // This file implements the Diagnostic-related interfaces.
13 #include "clang/Basic/Diagnostic.h"
83 // If we own the diagnostic client, destroy it first so that it can access the in ~DiagnosticsEngine()
134 // Clear state related to #pragma diagnostic. in Reset()
139 // Create a DiagState and DiagStatePoint representing diagnostic changes in Reset()
209 // Common case: we have not seen any diagnostic pragmas. in lookup()
237 // We created a new File; look up the diagnostic state at the start of it and in getFile()
250 // top-level file and added diagnostic pragmas to it. See the code at the in getFile()
259 llvm::errs() << "diagnostic state at "; in dump()
389 // the diagnostic state at the same location at which we pop. in setSeverity()
394 // A diagnostic pragma occurred, create a new DiagState initialized with in setSeverity()
427 // If we are enabling this feature, just set the diagnostic mappings to map to in setDiagnosticGroupWarningAsError()
433 // Otherwise, we want to set the diagnostic mapping's "no Werror" bit, and in setDiagnosticGroupWarningAsError()
458 // If we are enabling this feature, just set the diagnostic mappings to map to in setDiagnosticGroupErrorAsFatal()
464 // Otherwise, we want to set the diagnostic mapping's "no Wfatal-errors" bit, in setDiagnosticGroupErrorAsFatal()
517 Diagnostic Info(this, storedDiag.getMessage()); in Report()
532 Diagnostic Info(this); in EmitCurrentDiagnostic()
534 // Figure out the diagnostic level of this message. in EmitCurrentDiagnostic()
540 // Emit the diagnostic regardless of suppression level. in EmitCurrentDiagnostic()
544 // Process the diagnostic, sending the accumulated information to the in EmitCurrentDiagnostic()
549 // Clear out the current diagnostic object. in EmitCurrentDiagnostic()
552 // If there was a delayed diagnostic, emit it now. in EmitCurrentDiagnostic()
562 const Diagnostic &Info) { in HandleDiagnostic()
608 /// "%2" has a value from 0-2. If the value is 0, the diagnostic prints 'foo'.
611 static void HandleSelectModifier(const Diagnostic &DInfo, unsigned ValNo, in HandleSelectModifier()
620 " larger than the number of options in the diagnostic string!"); in HandleSelectModifier()
752 static void HandlePluralModifier(const Diagnostic &DInfo, unsigned ValNo, in HandlePluralModifier()
777 /// without quotes in diagnostic messages. These strings may be translatable in
788 /// FormatDiagnostic - Format this diagnostic into a string, substituting the
791 void Diagnostic::
804 /// EscapeStringForDiagnostic - Append Str to the diagnostic buffer,
849 void Diagnostic::
852 // When the diagnostic string is only "%0", the entire string is being given in FormatDiagnostic()
893 // This must be a placeholder for a diagnostic argument. The format for a in FormatDiagnostic()
915 assert(DiagStr != DiagEnd && "Mismatched {}'s in diagnostic string!"); in FormatDiagnostic()
921 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic"); in FormatDiagnostic()
1080 // Print the tree. If this diagnostic already has a tree, skip the in FormatDiagnostic()
1158 const Diagnostic &Info) in StoredDiagnostic()
1161 "Valid source location without setting a source manager for diagnostic"); in StoredDiagnostic()
1200 const Diagnostic &Info) { in HandleDiagnostic()