Enable chained function calls in C++ expressions.
[deliverable/binutils-gdb.git] / gdb / gdbtypes.c
index 61d259d81fbd077fa3bd32fdbf427aaa1428a5d3..611a0e7d4a5e79688b067b1f30707093b6811ca2 100644 (file)
@@ -2508,6 +2508,15 @@ is_scalar_type_recursive (struct type *t)
   return 0;
 }
 
+/* Return true is T is a class or a union.  False otherwise.  */
+
+int
+class_or_union_p (const struct type *t)
+{
+  return (TYPE_CODE (t) == TYPE_CODE_STRUCT
+          || TYPE_CODE (t) == TYPE_CODE_UNION);
+}
+
 /* A helper function which returns true if types A and B represent the
    "same" class type.  This is true if the types have the same main
    type, or the same name.  */
This page took 0.02714 seconds and 4 git commands to generate.