Home | History | Annotate | Download | only in Basic

Lines Matching refs:Diagnostic

1 //===--- Diagnostic.cpp - C Language Family Diagnostic Handling -----------===//
10 // This file implements the Diagnostic-related interfaces.
15 #include "clang/Basic/Diagnostic.h"
88 // If we own the diagnostic client, destroy it first so that it can access the
130 // Clear state related to #pragma diagnostic.
135 // Create a DiagState and DiagStatePoint representing diagnostic changes
208 // Another common case; modifying diagnostic state in a source location
212 // A diagnostic pragma occurred, create a new DiagState initialized with
221 // We allow setting the diagnostic state in random source order for
227 // Update all diagnostic states that are active after the given location.
266 // If we are enabling this feature, just set the diagnostic mappings to map to
272 // Otherwise, we want to set the diagnostic mapping's "no Werror" bit, and
297 // If we are enabling this feature, just set the diagnostic mappings to map to
303 // Otherwise, we want to set the diagnostic mapping's "no Werror" bit, and
353 Diagnostic Info(this, storedDiag.getMessage());
368 Diagnostic Info(this);
370 // Figure out the diagnostic level of this message.
376 // Emit the diagnostic regardless of suppression level.
380 // Process the diagnostic, sending the accumulated information to the
385 // Clear out the current diagnostic object.
389 // If there was a delayed diagnostic, emit it now.
400 const Diagnostic &Info) {
446 /// "%2" has a value from 0-2. If the value is 0, the diagnostic prints 'foo'.
449 static void HandleSelectModifier(const Diagnostic &DInfo, unsigned ValNo,
458 " larger than the number of options in the diagnostic string!");
591 static void HandlePluralModifier(const Diagnostic &DInfo, unsigned ValNo,
616 /// without quotes in diagnostic messages. These strings may be translatable in
627 /// FormatDiagnostic - Format this diagnostic into a string, substituting the
630 void Diagnostic::
643 void Diagnostic::
647 // When the diagnostic string is only "%0", the entire string is being given
693 // This must be a placeholder for a diagnostic argument. The format for a
715 assert(DiagStr != DiagEnd && "Mismatched {}'s in diagnostic string!");
721 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic");
876 // Print the tree. If this diagnostic already has a tree, skip the
954 const Diagnostic &Info)
958 "Valid source location without setting a source manager for diagnostic");
989 const Diagnostic &Info) {