[cfe-dev] AST Parsing in C/C++ files

Stephen Kelly via cfe-dev cfe-dev at lists.llvm.org
Fri Jun 12 14:35:46 PDT 2020


Note also that the AST changes with dialect (c++11 etc).

Thanks,

Stephen.

On 12/06/2020 12:40, Marcos Horro via cfe-dev wrote:
> Hello all,
>
> 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.
> Thank you.
>
> Kind regards,
>
>
> 	
> H.
> http://gac.udc.es/~horro
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200612/4c6b191d/attachment.html>


More information about the cfe-dev mailing list