]> granicus.if.org Git - clang/commit
Improve source-location information for C++ conversion functions, by
authorDouglas Gregor <dgregor@apple.com>
Mon, 12 Apr 2010 23:19:01 +0000 (23:19 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 12 Apr 2010 23:19:01 +0000 (23:19 +0000)
commit05baacbfd67017b2724f3e0503fd23609f5d32bc
tree6ed82300fb9aef69668ca77d34d9ab91256e32d7
parent515f43f9f23de50d155b481b8774ec40bdfd7ff2
Improve source-location information for C++ conversion functions, by
copying the type location information from the conversion-type-id into
the type location information for the function type. Do something
similar for constructors and destructors, by giving their "void"
return type source-location information.

In all of these cases, we previously left this type-source information
uninitialized, which led to various unfortunate crashes.

We still aren't tracking good source-location information for the
actual names. That's PR6357.

John, please check my sanity on this.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101088 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaType.cpp
test/SemaCXX/conversion-function.cpp