diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-17 20:15:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-08-17 20:15:55 +0000 |
commit | 94fe9eee8c6b7eafb9b31aa33bc9a3b544883d88 (patch) | |
tree | 4918ad8103ce9811bbfa7df803c66916d4f588f6 | |
parent | 75cf3e86d33ce810c12084126385371b335c30ba (diff) |
[libclang] Implicit objc methods are skipped, no need to check isSynthesized.
Plus, isSynthesized returning true does not mean that there is not a user-declared method declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137858 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/libclang/CIndex.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 3640d2401b..173aa23786 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -4746,12 +4746,6 @@ AnnotateTokensWorker::Visit(CXCursor cursor, CXCursor parent) { const enum CXCursorKind cursorK = clang_getCursorKind(cursor); if (cursorK >= CXCursor_FirstDecl && cursorK <= CXCursor_LastDecl) { Decl *D = cxcursor::getCursorDecl(cursor); - // Don't visit synthesized ObjC methods, since they have no syntatic - // representation in the source. - if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(D)) { - if (MD->isSynthesized()) - return CXChildVisit_Continue; - } SourceLocation StartLoc; if (const DeclaratorDecl *DD = dyn_cast<DeclaratorDecl>(D)) { |