diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-20 13:41:25 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-24 11:10:28 +0000 |
commit | 027893b4955ce9bd08f0e68960806c74d77805e2 (patch) | |
tree | 446daafb37dc35487f300564aec05e61b492abcd /sources/shiboken2/ApiExtractor/abstractmetalang.h | |
parent | bbbcc44789a2206c85836fc9656389d00ca7e010 (diff) |
shiboken: Add exception specification to clang parser
For exception handling, calls into C++ might need to wrapped
in try/catch. Detect noexcept functions for which this can be omitted.
Task-number: PYSIDE-62
Change-Id: I37aced91ace184edf211a457a60c131d516a4037
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetalang.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetalang.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetalang.h b/sources/shiboken2/ApiExtractor/abstractmetalang.h index d84a82af3..da3b72e1c 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetalang.h +++ b/sources/shiboken2/ApiExtractor/abstractmetalang.h @@ -835,6 +835,10 @@ public: } static bool isConversionOperator(const QString& funcName); + + bool isNoExcept() const { return m_isNoExcept; } + void setNoExcept(bool n) { m_isNoExcept = n; } + bool isConversionOperator() const { return isConversionOperator(originalName()); @@ -1098,6 +1102,7 @@ private: uint m_reverse : 1; uint m_userAdded : 1; uint m_explicit : 1; + uint m_isNoExcept : 1; uint m_pointerOperator : 1; uint m_isCallOperator : 1; }; |