GCC Middle and Back End API Reference
maybe_range_label_for_tree_type_mismatch Class Reference

#include <gcc-rich-location.h>

Inheritance diagram for maybe_range_label_for_tree_type_mismatch:
Collaboration diagram for maybe_range_label_for_tree_type_mismatch:

Public Member Functions

 maybe_range_label_for_tree_type_mismatch (tree expr, tree other_expr)
label_text get_text (unsigned range_idx) const final override

Private Attributes

tree m_expr
tree m_other_expr

Detailed Description

Subclass of range_label for labelling the type of EXPR when reporting
a type mismatch between EXPR and OTHER_EXPR.
Either or both of EXPR and OTHER_EXPR could be NULL.   

Constructor & Destructor Documentation

◆ maybe_range_label_for_tree_type_mismatch()

maybe_range_label_for_tree_type_mismatch::maybe_range_label_for_tree_type_mismatch ( tree expr,
tree other_expr )

Member Function Documentation

◆ get_text()

label_text maybe_range_label_for_tree_type_mismatch::get_text ( unsigned range_idx) const
Implementation of range_label::get_text for

If both expressions are non-NULL, then generate text describing
the first expression's type (using the other expression's type
for comparison, analogous to %H and %I in the C++ frontend, but
on expressions rather than types).   

References EXPR_P, range_label_for_type_mismatch::get_text(), ggc_alloc(), m_expr, m_other_expr, NULL, NULL_TREE, and TREE_TYPE.

Field Documentation

◆ m_expr

tree maybe_range_label_for_tree_type_mismatch::m_expr

Referenced by get_text().

◆ m_other_expr

tree maybe_range_label_for_tree_type_mismatch::m_other_expr

Referenced by get_text().

The documentation for this class was generated from the following files: