[LLVMdev] clang and overloaded functions

Brian Watt bwatt at us.ibm.com
Wed Nov 26 10:00:30 PST 2008


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.?

int f(int, int);
float f(float, float);
int g() {
  float x = f(1.0f, 2.0f);
}

Brian Watt, IBM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081126/6cb3b601/attachment.html>


More information about the llvm-dev mailing list