<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" dir="auto" style="word-wrap:break-word">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,
<div><br>
</div>
<div>I’m using libclang for a visual documentation tool for C++ codes, Flowgen, under current development.<br>
<br>
I'd like Flowgen to access automatically the condition of an if-statement. Example:<br>
<br>
if ( varMax == 4 && <br>
    varOther ==2 ) {<br>
     std::cout << "test";<br>
  } else if{<br>
     std::cout << "test1";<br>
  } else {<br>
     std::cout << "test2"; <br>
  }<br>
<br>
Imagine that I have accessed the if-statement node/Cursor with libclang<br>
#clang node types (CursorKind)<br>
#205: if statement<br>
<br>
I'd like to have (direct) access to the string "varMax == 4 && varOther ==2".<br>
I'd like to have (direct) access as well to the else-if node and the else node.<br>
Anyone knows how? Thank you and best regards,<br>
<br>
Juan J. Lopez-Villarejo<br>
<br>
</div>
</div>
</body>
</html>