aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-17 02:14:31 +0000
committerChris Lattner <sabre@nondot.org>2009-02-17 02:14:31 +0000
commit4e843feddc6e370a28a164f578a8349760f35110 (patch)
treee24bd01cb3da293aa0b187c73c9fa0a14975f3c2 /clang/lib/Basic/SourceManager.cpp
parentcba4b6f83de910223450cc0bbd92f64a9b50556e (diff)
downloadllvm-4e843feddc6e370a28a164f578a8349760f35110.zip
llvm-4e843feddc6e370a28a164f578a8349760f35110.tar.gz
llvm-4e843feddc6e370a28a164f578a8349760f35110.tar.bz2
start converting over to attr(overloadable). Unfortunately, this
produces really horrible diagnostics when overload ambiguities happen: t.c:10:10: error: call to '__tg_acos' is ambiguous; candidates are: return acos(x); ^~~~ In file included from t.c:1: /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ /Users/sabre/llvm/Debug/Headers/tgmath-sofar.h:49:1: note: candidate function __TG_RC_1(x, acos, cacos) ^ A possible fix is to just not use macros for this, which I'll probably go for, but it would be nice to emit the type at the call, so we know what we asked for! llvm-svn: 64720
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions