aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 1f1dc485..5671d606 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -799,7 +799,8 @@ public:
m_invalid(false),
m_reverse(false),
m_userAdded(false),
- m_explicit(false)
+ m_explicit(false),
+ m_pointerOperator(false)
{
}
@@ -835,6 +836,20 @@ public:
return m_reverse;
}
+ /**
+ * Returns true if this is a operator and the "self" operand is a pointer.
+ * e.g. class Foo {}; operator+(SomeEnum, Foo*);
+ */
+ bool isPointerOperator() const
+ {
+ return m_pointerOperator;
+ }
+
+ void setPointerOperator(bool value)
+ {
+ m_pointerOperator = value;
+ }
+
void setExplicit(bool isExplicit)
{
m_explicit = isExplicit;
@@ -1161,6 +1176,7 @@ private:
uint m_reverse : 1;
uint m_userAdded : 1;
uint m_explicit : 1;
+ uint m_pointerOperator : 1;
};