Home | History | Annotate | Download | only in Basic

Lines Matching full:diagnostic

1 //===--- Diagnostic.cpp - C Language Family Diagnostic Handling -----------===//
10 // This file implements the Diagnostic-related interfaces.
15 #include "clang/Basic/Diagnostic.h"
87 // If we own the diagnostic client, destroy it first so that it can access the
129 // Clear state related to #pragma diagnostic.
134 // Create a DiagState and DiagStatePoint representing diagnostic changes
207 // Another common case; modifying diagnostic state in a source location
211 // A diagnostic pragma occurred, create a new DiagState initialized with
220 // We allow setting the diagnostic state in random source order for
226 // Update all diagnostic states that are active after the given location.
265 // If we are enabling this feature, just set the diagnostic mappings to map to
271 // Otherwise, we want to set the diagnostic mapping's "no Werror" bit, and
296 // If we are enabling this feature, just set the diagnostic mappings to map to
302 // Otherwise, we want to set the diagnostic mapping's "no Werror" bit, and
352 Diagnostic Info(this, storedDiag.getMessage());
367 Diagnostic Info(this);
369 // Figure out the diagnostic level of this message.
375 // Emit the diagnostic regardless of suppression level.
379 // Process the diagnostic, sending the accumulated information to the
384 // Clear out the current diagnostic object.
388 // If there was a delayed diagnostic, emit it now.
399 const Diagnostic &Info) {
445 /// "%2" has a value from 0-2. If the value is 0, the diagnostic prints 'foo'.
448 static void HandleSelectModifier(const Diagnostic &DInfo, unsigned ValNo,
457 " larger than the number of options in the diagnostic string!");
590 static void HandlePluralModifier(const Diagnostic &DInfo, unsigned ValNo,
615 /// without quotes in diagnostic messages. These strings may be translatable in
626 /// FormatDiagnostic - Format this diagnostic into a string, substituting the
629 void Diagnostic::
642 void Diagnostic::
646 // When the diagnostic string is only "%0", the entire string is being given
692 // This must be a placeholder for a diagnostic argument. The format for a
714 assert(DiagStr != DiagEnd && "Mismatched {}'s in diagnostic string!");
720 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic");
875 // Print the tree. If this diagnostic already has a tree, skip the
953 const Diagnostic &Info)
957 "Valid source location without setting a source manager for diagnostic");
988 const Diagnostic &Info) {