title: Get operator type for CXCursor_BinaryOperator
body: <p>I'm trying to find an assignment in C++ source file:</p>
  
  <pre><code>x = 10;
  </code></pre>
  
  <p>I'm using libclang to parse it and traverse AST. There is an <code>CXCursor_BinaryOperator</code> that represents binary operators. Is there a way to determine whether it is an assignment or any other binary operator (like <code>+</code> or <code>&lt;=</code> or <code>!=</code>)? If not then how can I determine if the expression is an assignment or not?</p>
  
  <p>Thnks in advance. </p>