<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hi All,</div><div><br></div>I'm a complete clang newbie, so apologies in advance...<div><br></div><div>I'm using libclang via clang-sharp in a c# tool which will parse my c++ code and automatically generate code for reflection/serialisation etc. And a<span style="font-size: 12pt;">ll is good until I start to look at std::vector members or other collection classes.</span></div><div><br></div><div>I'm calling VisitChildren in a manner similar to the simplified code below:</div><div><br></div><div>cursor.VisitChildren((child, parent) => {if(child.Kind == CursorKind.FieldDecl) {/*Do Stuff*/}; return Cursor.ChildVisitResult.Continue;});</div><div><br></div><div>And an an example the following:</div><div><br></div><div>class Test</div><div>{</div><div><span style="font-size: 12pt;">  int i;</span></div><div>  char* s;</div><div>  std::string str;</div><div>  Test* p;</div><div><span style="font-size: 12pt;">  bool b;</span></div><div>  Foo& foo;</div><div>  vector<int> vi;       // <------------------------------------ BAD</div><div>  Bar<int> bi;           // Fine</div><div>}</div><div><br></div><div>Will be handled fine apart from the vi definition.  VisitChildren doesn't ever visit this.</div><div><br></div><div>Any advice much appreciated,</div><div>Puzzled Newbie.</div>                                           </div></body>
</html>