<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<p>Note also that the AST changes with dialect (c++11 etc).</p>
<p>Thanks,</p>
<p>Stephen.<br>
</p>
<div class="moz-cite-prefix">On 12/06/2020 12:40, Marcos Horro via
cfe-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:B0FAD003-A3A2-43F1-8FBE-22C4B0060722@getmailspring.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div>Hello all,</div>
<br>
<div>My question is quite simple, not sure about the complexity of
the explanation: the AST generated for a file when having .c
extension vs when it has .cc is different even having the same
content, is there a reason for this behavior? I am building a
tool that needs parsing C/C++ files so I have files with the
extension .c, .cc, .cpp. All .c and .cpp seem to work properly,
but not the .cc files. I have tried those .c files working to
change the extension to .cc and they stop working; so there is
something that I do not understand. The reason is that,
probably, I am missing or misunderstanding something.</div>
<div>Thank you.</div>
<br>
<div>Kind regards,</div>
<br>
<div><signature id="initial">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="vertical-align:top"><br>
</td>
<td>
<div>H.</div>
<div style="font-size:0.9em;border-top:1px solid
gray;min-width:250px;max-width:300px;margin-top:4px;padding-top:4px">
<div>
<div><a href="http://gac.udc.es/~horro"
moz-do-not-send="true">http://gac.udc.es/~horro</a></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</signature></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
</body>
</html>