1169689Skan/* DK_UNSPECIFIED must be first so it has a value of zero. We never 2169689Skan assign this kind to an actual diagnostic, we only use this in 3169689Skan variables that can hold a kind, to mean they have yet to have a 4169689Skan kind specified. I.e. they're uninitialized. Within the diagnostic 5169689Skan machinery, this kind also means "don't change the existing kind", 6169689Skan meaning "no change is specified". */ 7169689SkanDEFINE_DIAGNOSTIC_KIND (DK_UNSPECIFIED, "") 8169689Skan 9169689Skan/* If a diagnostic is set to DK_IGNORED, it won't get reported at all. 10169689Skan This is used by the diagnostic machinery when it wants to disable a 11169689Skan diagnostic without disabling the option which causes it. */ 12169689SkanDEFINE_DIAGNOSTIC_KIND (DK_IGNORED, "") 13169689Skan 14169689Skan/* The remainder are real diagnostic types. */ 15117395SkanDEFINE_DIAGNOSTIC_KIND (DK_FATAL, "fatal error: ") 16117395SkanDEFINE_DIAGNOSTIC_KIND (DK_ICE, "internal compiler error: ") 17132718SkanDEFINE_DIAGNOSTIC_KIND (DK_ERROR, "error: ") 18117395SkanDEFINE_DIAGNOSTIC_KIND (DK_SORRY, "sorry, unimplemented: ") 19117395SkanDEFINE_DIAGNOSTIC_KIND (DK_WARNING, "warning: ") 20117395SkanDEFINE_DIAGNOSTIC_KIND (DK_ANACHRONISM, "anachronism: ") 21117395SkanDEFINE_DIAGNOSTIC_KIND (DK_NOTE, "note: ") 22117395SkanDEFINE_DIAGNOSTIC_KIND (DK_DEBUG, "debug: ") 23117395Skan 24