Added handling of static class fields

This commit is contained in:
Bartek Kryza
2021-02-25 20:43:13 +01:00
parent e3ffeba732
commit dfa39a0433
6 changed files with 24 additions and 9 deletions

View File

@@ -137,6 +137,11 @@ public:
return clang_CXXMethod_isVirtual(m_cursor);
}
bool is_static() const
{
return clang_Cursor_getStorageClass(m_cursor) == CX_SC_Static;
}
bool is_method_static() const { return clang_CXXMethod_isStatic(m_cursor); }
bool is_method_const() const { return clang_CXXMethod_isConst(m_cursor); }