[LLVMdev] clang and overloaded functions

Brian Watt bwatt at us.ibm.com
Wed Nov 26 11:30:45 PST 2008


Oops, sorry, thanks Chris.

Brian Watt, IBM

> 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
> _______________________________________________
> 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/fb851a7a/attachment.html>


More information about the llvm-dev mailing list