<html><head><title>Re: cfe-users Digest, Vol 55, Issue 3 - Re: Missing header files in AST display</title>
</head>
<body>
<span style=" font-family:'Century Gothic'; font-size: 12pt;">Thursday, August 3, 2017, 12:00:01 PM, you wrote:<br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> Send cfe-users mailing list submissions to<br>
>         </b></span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> To subscribe or unsubscribe via the World Wide Web, visit<br>
>         </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> or, via email, send a message with subject or body 'help' to<br>
>         </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users-request@lists.llvm.org">cfe-users-request@lists.llvm.org</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> You can reach the person managing the list at<br>
>         </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users-owner@lists.llvm.org">cfe-users-owner@lists.llvm.org</a><br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of cfe-users digest..."<br>
<br>
<br>
> Today's Topics:<br>
<br>
>    1. Re: Missing header files in AST display<br>
>       (Raphael Isemann via cfe-users)<br>
<br>
</b><span style=" font-family:'Century Gothic'; font-size: 12pt; color: #000000;">Raphael,<br>
<br>
I was referring to the default include paths and your sample<br>
command line did the trick and it all works well now.  Thanks<br>
a lot for your help.<br>
<br>
Ray<br>
<br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> ----------------------------------------------------------------------<br>
<br>
> Message: 1<br>
> Date: Wed, 2 Aug 2017 22:46:02 +0200<br>
> From: Raphael Isemann via cfe-users <</b></span></span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>><br>
> To: Ray Mitchell <</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:RayMitchell@meanoldteacher.com">RayMitchell@meanoldteacher.com</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>><br>
> Cc: </b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a><br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> Subject: Re: [cfe-users] Missing header files in AST display<br>
> Message-ID:<br>
>        <br>
> <</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:CADrqtg7HG5kGu5BjMrBf9J60GR0FcCj=22g0zDnGkALApvpByQ@mail.gmail.com">CADrqtg7HG5kGu5BjMrBf9J60GR0FcCj=22g0zDnGkALApvpByQ@mail.gmail.com</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>><br>
> Content-Type: text/plain; charset="UTF-8"<br>
<br>
> Do you mean the default include paths? Not sure how the Windows<br>
> version is handling this, but if a normal clang compilation works for<br>
> you, then this should make the ast-dump working with all include<br>
> default paths:<br>
<br>
> clang -Xclang -ast-dump -fsyntax-only -I/your/usual/extra/paths test.c<br>
<br>
> Note that there is no -cc1 but instead we only add the -ast-dump to<br>
> the -cc1 invocation via -Xclang. This way you also get your default<br>
> include paths from the driver.<br>
<br>
> Otherwise you should write an example invocation that fails to find a<br>
> certain header in a certain path, because with the current information<br>
> it's hard to say what exactly is going wrong.<br>
<br>
> - Raphael<br>
<br>
> 2017-08-02 20:07 GMT+02:00 Ray Mitchell via cfe-users<br>
> <</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users@lists.llvm.org">cfe-users@lists.llvm.org</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>>:<br>
<span style=" color: #800080;">>> I can currently successfully compile and link C and C++ code on my Windows<br>
>> 10 system but I would also like to be able to separately generate the AST<br>
>> for each file.  The command line below does display much of the AST but it<br>
>> contains errors regarding missing header files that my files have included.<br>
>> For normal compiling I use the -I dir option in the standard way to specify<br>
>> header file paths but that does not seem to work with the command line<br>
>> below.  How should this be done?<br>
>>   clang -cc1 -ast-dump test.c<br>
<br>
>> _______________________________________________<br>
>> cfe-users mailing list<br>
</span></b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users@lists.llvm.org">>> cfe-users@lists.llvm.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users">>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
<br>
<br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> ------------------------------<br>
<br>
> Subject: Digest Footer<br>
<br>
> _______________________________________________<br>
> cfe-users mailing list<br>
</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:cfe-users@lists.llvm.org">> cfe-users@lists.llvm.org</a><br>
<a style=" font-family:'courier new'; font-size: 9pt;" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users">> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users</a><br>
<br>
<br>
<span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>> ------------------------------<br>
<br>
> End of cfe-users Digest, Vol 55, Issue 3<br>
> ****************************************<br>
<br>
</body></html>