[cfe-dev] -emit-html ignored
Jordan Rose
jediknil at belkadan.com
Tue May 29 20:54:53 PDT 2012
This works:
clang test.c -fsyntax-only -Xclang -emit-html -o test.html
The -Xclang flag causes the next flag to be passed directly to the actual compiler call (-cc1). We don't advertise it because those options are not guaranteed to be stable, so anyone writing scripts depending on -Xclang or -cc1 should be prepared to deal with breakage when they update their Clang. (At least, that's my understanding.)
Jordan
P.S. I didn't know about -emit-html...cool!
On May 21, 2012, at 16:14, Foivos Zakkak wrote:
> Yes, that did the trick :)
>
> Is there any way it could search my C_INCLUDE_PATH instead of having to
> pass all the paths with -I?
>
> Thank you
> Foivos
>
> On 05/22/2012 02:07 AM, Seth Cantrell wrote:
>> I believe you need the first argument to be -cc1
>>
>> At least that worked for me.
>>
>> On May 21, 2012, at 5:44 PM, Foivos Zakkak wrote:
>>
>>> Hi,
>>>
>>> i am trying to produce an html file with the source code of test.c,
>>> however i am getting the following
>>>
>>> $ clang test.c -emit-html -o test.html
>>> clang: warning: argument unused during compilation: '-emit-html'
>>>
>>> resulting in test.html to be the compiled executable of test.c
>>>
>>> Thank you in advance
>>> Foivos
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list