[index] Fix assertion hit when handling a declaration of C++'s 'operator new' function.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 2 Nov 2016 23:42:33 +0000 (23:42 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 2 Nov 2016 23:42:33 +0000 (23:42 +0000)
commitf12918d218b76ce442cd7e0c6b65620bf2d35805
tree14626f62f0db0d6e7d8ddc767e14e21708113e58
parent80b64f0861e1e7370bca2ccc9b95a848b7e1e815
[index] Fix assertion hit when handling a declaration of C++'s 'operator new' function.

Part of this is to allow creating a USR for the canonical decl of that which is implicit and does
not have a source location.

rdar://28978992

llvm-svn: 285868
clang/lib/Index/IndexingContext.cpp
clang/lib/Index/USRGeneration.cpp
clang/test/Index/Core/index-source.cpp