예제 #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
파일: clang++.cpp 프로젝트: mythagel/cxxide
int cursor::fieldDeclBitWidth()
{
    return clang_getFieldDeclBitWidth(cur);
}