Пример #1
0
std::size_t Cursor::get_bitfield_width() const
{
	int width{clang_getFieldDeclBitWidth(m_cx_cursor)};
	if ( width < 0 ) {
		if ( is_null(m_cx_cursor) ) {
			CLANGXX_THROW_LogicError("Error retrieving the bit width of a bit field declaration as an integer.");
		}
		width = 0;
	}
	return static_cast<std::size_t>(width);
}
Пример #2
0
SEXP R_clang_getFieldDeclBitWidth(SEXP r_C)
{
    SEXP r_ans = R_NilValue;
    CXCursor C = * GET_REF(r_C, CXCursor);
    
    int ans;
    ans = clang_getFieldDeclBitWidth(C);
    
    r_ans = ScalarInteger(ans) ;
    
    return(r_ans);
} 
Пример #3
0
int cursor::fieldDeclBitWidth()
{
    return clang_getFieldDeclBitWidth(cur);
}