<div dir="ltr">I like the idea, but I find the name confusing; I think it should have `llvm-c` or `c-api` somewhere in the name. This could also serve as a simple example of using the API.<div><br></div><div>-- Sean Silva</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 23, 2013 at 4:00 PM, Anders Waldenborg <span dir="ltr"><<a href="mailto:anders@0x63.nu" target="_blank">anders@0x63.nu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Moving this to llvmdev.<br>
<br>
On Fri, Sep 20, 2013 at 08:26:41AM +0200, Anders Waldenborg wrote:<br>
> > > This avoids warnings when included in a application that<br>
> > > uses -Wstrict-prototypes.<br>
> > ><br>
> ><br>
> > Should we enable this warning in CFLAGS for LLVM builds to catch this<br>
> > sooner?<br>
><br>
> It is a C-only warning, and AFAICS there is no C code in that uses<br>
> llvm-c in the llvm source tree where this warning could be added.<br>
><br>
> That said I think it would be good if there was some test for the C<br>
> API that compiled and linked againts libLLVM-X.so to make sure that<br>
> works properly and there has not sneaked in some c++ in the header<br>
> files. Something like c-index-test in clang, but unfortunately I guess<br>
> llvm-c is to diverse to be put in a single tool like that.<br>
<br>
Hacked up the beginnings of small tool for this. Find it attached.<br>
<br>
Does it make sense? Is this something that should be finished up and<br>
included?<br>
<br>
I doubt it will ever be able to reach good coverage over the llvm-c<br>
api. But it should be a quick smoke test to verify that it works at<br>
all, and that no c++-ism has been introduced in the headers that are<br>
included from C. And of course add the "-Wstrict-prototypes" warning.<br>
<span class="HOEnZb"><font color="#888888"><br>
anders<br>
</font></span><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>