<p>Can anyone help me answer this question?</p>
<p>Thanks,<br>
Bob</p>
<div class="gmail_quote">On Mar 30, 2012 4:15 PM, "Bob Cvengros" <<a href="mailto:rcvengr2@gmail.com">rcvengr2@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>Hello,</p>
<p>I am new to clang and am trying to use it to parse C header files into an AST. I have been looking through the API's Index.h file but cannot find any way to access bit-field information for struct field declarations. Basically I am looking for functions such as isBitField() and getBitWidth() that operate on CXCursor objects in order to access field information.</p>


<p>As far as I can see there is no access to this information through the libclang API, however I can see that these functions are available through the clang::FieldDecl class which is not part of the API. Have I misread the documentation, and the libclang API does provide access to this information? If the API does not provide this access, can someone help me by exposing it in the API?</p>


<p>I would do it myself, but I am still fairly new to this project and do not know the source very well. Thanks in advance for the help!</p>
<p>Regards, <br>
Bob</p>
</blockquote></div>