<div dir="ltr">Hello, I have a rather confusing problem.<br>As the email's subject says, I happen to match record definitions with the matcher <i>functionDecl</i>.<br><br>Using clang-query on simple example test files works perfectly, unless there is an include file involved. As soon, as clang-query (or my own tool) constructs an AST for a source, that refers to an include file, the matcher <i>functionDecl</i> will match on ANY record that is defined in the include file - not matching any defined in the cpp file.<div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div><div><br></div></div><div>The AST Matcher Reference on <i>functionDecl</i> is rather simple:<br>"<i>Matches function declarations.</i></div><pre><i>
Example matches f </i></pre><div><i>  void f();</i>"</div><div><br></div><div>No mentions of other node types, so how is this possible - any ideas to what i am doing wrong?<br><br></div><div>Thanks in advance!</div></div></div></div></div></div>