if (function != NULL && function->language () == language_cplus)
{
/* Search the function's template parameters. */
- if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
+ if (function->is_cplus_template_function ())
{
struct template_symbol *templ
= (struct template_symbol *) function;
m_is_inlined = is_inlined;
}
+ bool is_cplus_template_function () const
+ {
+ return this->subclass == SYMBOL_TEMPLATE;
+ }
+
/* Data type of value */
struct type *type = nullptr;
/* Note: There is no accessor macro for symbol.owner because it is
"private". */
-#define SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION(symbol) \
- (((symbol)->subclass) == SYMBOL_TEMPLATE)
#define SYMBOL_TYPE(symbol) (symbol)->type
#define SYMBOL_LINE(symbol) (symbol)->line
#define SYMBOL_COMPUTED_OPS(symbol) ((symbol)->impl ().ops_computed)
/* An instance of this type is used to represent a C++ template
function. A symbol is really of this type iff
- SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION is true. */
+ symbol::is_cplus_template_function is true. */
struct template_symbol : public symbol
{