[cfe-dev] -emit-html example

Ted Kremenek kremenek at apple.com
Thu Apr 17 19:04:18 PDT 2008


What clang revision are you using?  Chris checked in a patch earlier  
today that handled the case where some text wasn't being "escaped."   
Are you still having this problem with TOT?

On Apr 17, 2008, at 3:45 PM, Nuno Lopes wrote:

>>> Anyway, I think the output is great! However I found some little
>>> problems, like:
>>> - the output jumps from line 1659 to 2085
>>
>> I don't see this in safari.
>
> Take a look at line 1659:
> <tr><td class="num" id="LN1659">1659</td><td class="line"><span
> class='keyword'>static</span> <span class='keyword'>const</span> <span
> class='keyword'>struct</span> spec_list_1 extra_specs_1[] = { <span
> class='macro'>EXTRA_SPECS<span class='expansion'>{ "cc1_cpu" , "%{! 
> mtune*:
> %{m386:mtune=i386 %n`-m386' is deprecated. Use `-march=i386' or
> `-mtune=i386' instead.\n} %{m486:-mtune=i486 %n`-m486' is  
> deprecated. Use
> `-march=i486' or `-mtune=i486' instead.\n} %{mpentium:-mtune=pentium
> %n`-mpentium' is deprecated. Use `-march=pentium' or `-mtune=pentium'
> instead.\n} %{mpentiumpro:-mtune=pentiumpro %n`-mpentiumpro' is  
> deprecated.
> Use `-march=pentiumpro' or `-mtune=pentiumpro' instead.\n}
> %{mcpu=*:-mtune=%* %n`-mcpu=' is deprecated. Use `-mtune=' or '- 
> march='
> instead.\n}} %<mcpu=* %{mintel-syntax:-masm=intel %n`-mintel-syntax'  
> is
> deprecated. Use `-masm=intel' instead.\n} %{mno-intel-syntax:-masm=att
> %n`-mno-intel-syntax' is deprecated. Use `-masm=att' instead.\n}"<br>
> "%{march=native:%<march=native %:local_cpu_detect(arch)
> %{!mtune=*:%<mtune=native %:local_cpu_detect(tune)}}
> %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}"<br> } , {
> "darwin_crt1" , "%:version-compare(!> 10.5 mmacosx-version-min= - 
> lcrt1.o)
> %:version-compare(>= 10.5 mmacosx-version-min= - 
> lcrt1.10.5.o)"<br> } , {
> "darwin_dylib1" , "%:version-compare(!> 10.5
> mmacosx-version-min= -ldylib1.o)     %:version-compare(>= 10.5
> mmacosx-version-min= -ldylib1.10.5.o)"<br> } , { "darwin_minversion" ,
> "%{!m64|fgnu-runtime:10.4;        ,objective-c|,objc-cpp-output:10.5;
> ,objective-c-header:10.5;
> ,objective-c++|,objective-c++-cpp-output:10.5;
> ,objective-c++-header|,objc++-cpp-output:10.5;     :10.4}"<br> } , {
> "darwin_dsymutil" , "%{g*:%{!gstabs*:%{!g0: dsymutil
> %{o*:%*}%{!o:a.out}}}}"<br> } , { "darwin_arch" , "% 
> {m64:x86_64;:i386}" } ,
> { "darwin_crt2"<br> , "" } , { "darwin_subarch" , "% 
> {m64:x86_64;:i386}" }
> ,</span></span> };</td></tr>
>
>
> The problem is in the "'-march=' instead.\n}} %<mcpu=*" part. Notice  
> the
> unescaped '<'.
>
>
>>> - macro expansion is a bit weird in IE7, at least. the box is very
>>> little and wraps text after each word (I've attached a snapshot). In
>>> Firefox it looks much prettier, though.
>>
>> I'm not really sure what causes this, I'm no web guru ;-).
>>
>> Also, the white borders between table cells in your screenshot look
>> wrong.  Does anyone know how to stop that from happening?
>
> I dunno, but later I can try to fix that.
>
> Nuno
>
> _______________________________________________
> 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