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
134 // Clear state related to #pragma diagnostic.
139 // Create a DiagState and DiagStatePoint representing diagnostic changes
209 // Common case: we have not seen any diagnostic pragmas.
237 // We created a new File; look up the diagnostic state at the start of it and
250 // top-level file and added diagnostic pragmas to it. See the code at the
259 llvm::errs() << "diagnostic state at ";
389 // the diagnostic state at the same location at which we pop.
394 // A diagnostic pragma occurred, create a new DiagState initialized with
427 // If we are enabling this feature, just set the diagnostic mappings to map to
433 // Otherwise, we want to set the diagnostic mapping's "no Werror" bit, and
458 // If we are enabling this feature, just set the diagnostic mappings to map to
464 // Otherwise, we want to set the diagnostic mapping's "no Wfatal-errors" bit,
517 Diagnostic Info(this, storedDiag.getMessage());
532 Diagnostic Info(this);
534 // Figure out the diagnostic level of this message.
540 // Emit the diagnostic regardless of suppression level.
544 // Process the diagnostic, sending the accumulated information to the
549 // Clear out the current diagnostic object.
552 // If there was a delayed diagnostic, emit it now.
562 const Diagnostic &Info) {
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,
620 " larger than the number of options in the diagnostic string!");
752 static void HandlePluralModifier(const Diagnostic &DInfo, unsigned ValNo,
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
893 // This must be a placeholder for a diagnostic argument. The format for a
915 assert(DiagStr != DiagEnd && "Mismatched {}'s in diagnostic string!");
921 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic");
1080 // Print the tree. If this diagnostic already has a tree, skip the
1158 const Diagnostic &Info)
1161 "Valid source location without setting a source manager for diagnostic");
1200 const Diagnostic &Info) {