aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-29 14:28:08 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-10-30 13:04:26 +0000
commit40483a4249306b62029987d03e7de57d456954b2 (patch)
tree6f1dd5fd7e0f39c9b8f472ef96b151a5490b4f20 /sources/shiboken6/ApiExtractor/typesystem.h
parent021f8974a1784b37baaec4cfd1285dc44dfdab83 (diff)
shiboken6: Add element <declare-function>
Make it possible to simply declare functions that the code parser cannot see. Task-number: PYSIDE-904 Task-number: PYSIDE-1339 Change-Id: If50bc0f1fc77a63e753b6fa440e6f08dd312ce4c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/typesystem.h')
-rw-r--r--sources/shiboken6/ApiExtractor/typesystem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/typesystem.h b/sources/shiboken6/ApiExtractor/typesystem.h
index 2bbaabc91..4f9da99ef 100644
--- a/sources/shiboken6/ApiExtractor/typesystem.h
+++ b/sources/shiboken6/ApiExtractor/typesystem.h
@@ -491,6 +491,9 @@ struct AddedFunction
return m_isStatic;
}
+ bool isDeclaration() const { return m_isDeclaration; } // <declare-function>
+ void setDeclaration(bool value) { m_isDeclaration = value; }
+
FunctionModificationList modifications;
private:
@@ -500,6 +503,7 @@ private:
Access m_access = Protected;
bool m_isConst = false;
bool m_isStatic = false;
+ bool m_isDeclaration = false;
};
#ifndef QT_NO_DEBUG_STREAM