diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-12-01 11:05:28 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2017-12-01 13:54:29 +0000 |
commit | 4462db523fd8afc4177ad58caf1d5a955373bad5 (patch) | |
tree | 6ab2dae1247041d1dbcb1e05ac5de5eed3270082 /sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp | |
parent | d9aefad1942239e587698d1fa9213a881f6d19be (diff) |
shiboken/Clang parser: Add information about override/final
Change-Id: I0f1bad0567ae928d4117e7785e7788d9efd551c2
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp index 73b1638ef..171adc2d6 100644 --- a/sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp +++ b/sources/shiboken2/ApiExtractor/clangparser/clangbuilder.cpp @@ -773,6 +773,16 @@ BaseVisitor::StartTokenResult Builder::startToken(const CXCursor &cursor) d->qualifyTypeDef(cursor, d->m_currentField); } break; + case CXCursor_CXXFinalAttr: + if (!d->m_currentFunction.isNull()) + d->m_currentFunction->setFinal(true); + else if (!d->m_currentClass.isNull()) + d->m_currentClass->setFinal(true); + break; + case CXCursor_CXXOverrideAttr: + if (!d->m_currentFunction.isNull()) + d->m_currentFunction->setOverride(true); + break; default: break; } |