Example #1
0
long long Type::sizeOf(bool *isValid) const
{
    const long long size = clang_Type_getSizeOf(m_cxType);
    *isValid = size != CXTypeLayoutError_Invalid
            && size != CXTypeLayoutError_Incomplete
            && size != CXTypeLayoutError_Dependent;

    return size;
}
Example #2
0
//cursor::type cursor::type::class_type()
//{
//    return { clang_Type_getClassType(ctype) };
//}
long long cursor::type::size_of()
{
    return clang_Type_getSizeOf(ctype);
}
Example #3
0
 size_t Type::GetSizeOf() const
 {
     return clang_Type_getSizeOf(type_);
 }