]> granicus.if.org Git - clang/commit
[libclang] Make sure that when we have multiple @class references in the same line,
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 16 Apr 2012 22:42:01 +0000 (22:42 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 16 Apr 2012 22:42:01 +0000 (22:42 +0000)
commita9d45a3f423f60fa5d1f977acb5c8df50198f27e
treeb055ccd9fb2f6ba289bb6aa04b117593751def65
parent43aa1c302b31492ab0abfbf656b06ca446d93b3a
[libclang] Make sure that when we have multiple @class references in the same line,
that later ones do not override the previous ones.

If we have:
   @class Foo, Bar;
source ranges for both start at '@', so 'Bar' will end up overriding
'Foo' even though the cursor location was at 'Foo'.

rdar://11257578

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154873 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/get-cursor.m
tools/libclang/CIndex.cpp