aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuliano Procida <gprocida@google.com>2023-11-14 10:32:07 +0000
committerGiuliano Procida <gprocida@google.com>2023-11-14 10:52:58 +0000
commit190664937e4b3270192691557597656f0fde44f7 (patch)
tree9715b198c679355afbfe08c4043f2677bb66089f
parent354f728db665a9d34263c53b0a89d1ab5dc73cd6 (diff)
downloadlibabigail-190664937e4b3270192691557597656f0fde44f7.tar.gz
abg-ir.h: add some operator!= definitions
This prevents ambiguous lookup failures with more recent compiler / language versions. * include/abg-ir.h: (qualified_type_def) Add operator!=. (pointer_type_def): Likewise. (reference_type_def): Likewise. (class_or_union): Likewise. Bug: 295399968 Change-Id: I9019e4469ee159a9f6d927512d2639386102cd70 Signed-off-by: Giuliano Procida <gprocida@google.com>
-rw-r--r--include/abg-ir.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/abg-ir.h b/include/abg-ir.h
index 8d1d2922..c1e27fe4 100644
--- a/include/abg-ir.h
+++ b/include/abg-ir.h
@@ -2197,6 +2197,10 @@ public:
virtual bool
operator==(const qualified_type_def&) const;
+ virtual bool
+ operator!=(const qualified_type_def& other) const
+ {return !(*this == other);}
+
CV
get_cv_quals() const;
@@ -2297,6 +2301,10 @@ public:
bool
operator==(const pointer_type_def&) const;
+ bool
+ operator!=(const pointer_type_def& other) const
+ {return !(*this == other);}
+
const type_base_sptr
get_pointed_to_type() const;
@@ -2361,6 +2369,10 @@ public:
bool
operator==(const reference_type_def&) const;
+ bool
+ operator!=(const reference_type_def& other) const
+ {return !(*this == other);}
+
type_base_sptr
get_pointed_to_type() const;
@@ -4025,6 +4037,10 @@ public:
operator==(const class_or_union&) const;
virtual bool
+ operator !=(const class_or_union& other) const
+ {return !(*this == other);}
+
+ virtual bool
traverse(ir_node_visitor& v);
virtual ~class_or_union();