diff options
Diffstat (limited to 'libcpp/include/rich-location.h')
-rw-r--r-- | libcpp/include/rich-location.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcpp/include/rich-location.h b/libcpp/include/rich-location.h index 94c6e44..a2ece8b 100644 --- a/libcpp/include/rich-location.h +++ b/libcpp/include/rich-location.h @@ -23,6 +23,7 @@ along with this program; see the file COPYING3. If not see #define LIBCPP_RICH_LOCATION_H class range_label; +class label_effects; /* A hint to diagnostic_show_locus on how to print a source range within a rich_location. @@ -641,6 +642,12 @@ class range_label The RANGE_IDX is provided, allowing for range_label instances to be shared by multiple ranges if need be (the "flyweight" design pattern). */ virtual label_text get_text (unsigned range_idx) const = 0; + + /* Get any special effects for the label (e.g. links to other labels). */ + virtual const label_effects *get_effects (unsigned /*range_idx*/) const + { + return nullptr; + } }; /* A fix-it hint: a suggested insertion, replacement, or deletion of text. |