]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/substring-locations.h
diagnostics: add labeling of source ranges
[thirdparty/gcc.git] / gcc / substring-locations.h
index fca6fd333c4e7aca626cd5f5bec4abcd1e5116d5..919fdf0127d8c4a3aa6dc2a5a90b7d8b67efc3b2 100644 (file)
@@ -77,32 +77,40 @@ class substring_loc
 /* Functions for emitting a warning about a format string.  */
 
 extern bool format_warning_va (const substring_loc &fmt_loc,
+                              const range_label *fmt_label,
                               location_t param_loc,
+                              const range_label *param_label,
                               const char *corrected_substring,
                               int opt, const char *gmsgid, va_list *ap)
-  ATTRIBUTE_GCC_DIAG (5, 0);
+  ATTRIBUTE_GCC_DIAG (7, 0);
 
 extern bool format_warning_n_va (const substring_loc &fmt_loc,
+                                const range_label *fmt_label,
                                 location_t param_loc,
+                                const range_label *param_label,
                                 const char *corrected_substring,
                                 int opt, unsigned HOST_WIDE_INT n,
                                 const char *singular_gmsgid,
                                 const char *plural_gmsgid, va_list *ap)
-  ATTRIBUTE_GCC_DIAG (6, 0) ATTRIBUTE_GCC_DIAG (7, 0);
+  ATTRIBUTE_GCC_DIAG (8, 0) ATTRIBUTE_GCC_DIAG (9, 0);
 
 extern bool format_warning_at_substring (const substring_loc &fmt_loc,
+                                        const range_label *fmt_label,
                                         location_t param_loc,
+                                        const range_label *param_label,
                                         const char *corrected_substring,
                                         int opt, const char *gmsgid, ...)
-  ATTRIBUTE_GCC_DIAG (5, 6);
+  ATTRIBUTE_GCC_DIAG (7, 8);
 
 extern bool format_warning_at_substring_n (const substring_loc &fmt_loc,
+                                          const range_label *fmt_label,
                                           location_t param_loc,
+                                          const range_label *param_label,
                                           const char *corrected_substring,
                                           int opt, unsigned HOST_WIDE_INT n,
                                           const char *singular_gmsgid,
                                           const char *plural_gmsgid, ...)
-  ATTRIBUTE_GCC_DIAG (6, 8) ATTRIBUTE_GCC_DIAG (7, 8);
+  ATTRIBUTE_GCC_DIAG (8, 10) ATTRIBUTE_GCC_DIAG (9, 10);
 
 /* Implementation detail, for use when implementing
    LANG_HOOKS_GET_SUBSTRING_LOCATION.  */