Mark a struct definition in an objc container with the TopLevelDeclInObjCContainer...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Jan 2013 18:00:54 +0000 (18:00 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Jan 2013 18:00:54 +0000 (18:00 +0000)
commitc821f739b5a82da232e14c7e577edade68f763fd
tree1b45fb947e1d7e339cbbcb9f61777bff157a7990
parent82f80d49670aaf7ac774b29300a627670a488097
Mark a struct definition in an objc container with the TopLevelDeclInObjCContainer bit.

Fixes accurately getting a cursor inside an objc container containing a struct definition,
from a PCH/preamble file.

rdar://12584613

llvm-svn: 173811
clang/lib/Sema/SemaDecl.cpp
clang/test/Index/getcursor-preamble.h [new file with mode: 0644]
clang/test/Index/getcursor-preamble.m [new file with mode: 0644]