[LLVMdev] clang and overloaded functions

Chris Lattner clattner at apple.com
Wed Nov 26 10:50:19 PST 2008


On Nov 26, 2008, at 10:00 AM, Brian Watt wrote:
> In clang is it possible to declare C-language function prototypes  
> for overloaded functions even though it is not C-language legal.  
> It's because I see that GLSL provides something like this, and I'm  
> wondering if clang does too and how to express it either through  
> command line argument or language attributes, etc.?

Hi Brian,

I'm redirecting this to the cfe-dev mailing list, which is where most  
clang discussions happen.  I'll follow up there,

-Chris


>
>
> int f(int, int);
> float f(float, float);
> int g() {
>   float x = f(1.0f, 2.0f);
> }
>
> Brian Watt, IBM_______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081126/b1ac12a1/attachment.html>


More information about the llvm-dev mailing list