[libclang] When initializing an ObjC object via the "[[ClassName alloc] init*]" pattern,
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 10 Nov 2014 23:21:35 +0000 (23:21 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 10 Nov 2014 23:21:35 +0000 (23:21 +0000)
commit6cc5f73e38e3166c60b8591f13e14aa8e5bd423f
tree4629f02d511b38223afacc3723d5391c58eac1c2
parent5c35f7cfd1f5e8f1089b11bd33c5bbd4f4a9e061
[libclang] When initializing an ObjC object via the "[[ClassName alloc] init*]" pattern,
report the 'init*' invocation as non-dynamic via clang_Cursor_isDynamicCall.

Of course it is dynamic at runtime, but for purposes of indexing we can treat as an invocation to ClassName's init*.

Addresses rdar://18916871.

llvm-svn: 221641
clang/test/Index/cursor-dynamic-call.mm
clang/tools/libclang/CXCursor.cpp