]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/diagnostic.h
Add diagnostic_metadata and CWE support
[gcc.git] / gcc / diagnostic.h
index 91e4c50960510c8113bef80985e1ec87af162a49..3a49c99e3af9e24262fd9d5094669c1a5b1b2ffd 100644 (file)
@@ -46,6 +46,10 @@ struct diagnostic_info
   /* The location at which the diagnostic is to be reported.  */
   rich_location *richloc;
 
+  /* An optional bundle of metadata associated with the diagnostic
+     (or NULL).  */
+  const diagnostic_metadata *metadata;
+
   /* Auxiliary data for client.  */
   void *x_data;
   /* The kind of diagnostic it is about.  */
@@ -126,6 +130,10 @@ struct diagnostic_context
   /* Character used for caret diagnostics.  */
   char caret_chars[rich_location::STATICALLY_ALLOCATED_RANGES];
 
+  /* True if we should print any CWE identifiers associated with
+     diagnostics.  */
+  bool show_cwe;
+
   /* True if we should print the command line option which controls
      each diagnostic, if known.  */
   bool show_option_requested;
This page took 0.031409 seconds and 5 git commands to generate.