diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-04 04:48:02 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-04 04:48:02 +0000 |
| commit | 52f53fb3031f3269d03a3ea0b1d7e1cd85459346 (patch) | |
| tree | 080d8cfa37a676e70a19f6b78393178ee19658ef /clang/tools/libclang/CIndex.cpp | |
| parent | b047fed5cd7ef61a20a4ea61ac91708fce846b80 (diff) | |
| download | bcm5719-llvm-52f53fb3031f3269d03a3ea0b1d7e1cd85459346.tar.gz bcm5719-llvm-52f53fb3031f3269d03a3ea0b1d7e1cd85459346.zip | |
Improve location fidelity of objc decls.
-Add the location of the class name to all objc container decls, not just ObjCInterfaceDecl.
-Make objc decls consistent with the rest of the NamedDecls and have getLocation() point to the
class name, not the location of '@'.
llvm-svn: 141061
Diffstat (limited to 'clang/tools/libclang/CIndex.cpp')
| -rw-r--r-- | clang/tools/libclang/CIndex.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 0f0ff85fb3f..b9fa0fbd774 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -3717,8 +3717,6 @@ CXSourceLocation clang_getCursorLocation(CXCursor C) { Decl *D = getCursorDecl(C); SourceLocation Loc = D->getLocation(); - if (ObjCInterfaceDecl *Class = dyn_cast<ObjCInterfaceDecl>(D)) - Loc = Class->getClassLoc(); // FIXME: Multiple variables declared in a single declaration // currently lack the information needed to correctly determine their // ranges when accounting for the type-specifier. We use context |

