summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-17 20:15:55 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-08-17 20:15:55 +0000
commitd8b87a8b2ebfad4b343857904f40a5a2baf50f3a (patch)
tree9bfa83ff8d384583836789ac75efe6e815199f52
parent3b5a69cc45a99ad86b8dc4ccc016ba9cf9e5e3f2 (diff)
downloadbcm5719-llvm-d8b87a8b2ebfad4b343857904f40a5a2baf50f3a.tar.gz
bcm5719-llvm-d8b87a8b2ebfad4b343857904f40a5a2baf50f3a.zip
[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. llvm-svn: 137858
-rw-r--r--clang/tools/libclang/CIndex.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 3640d2401ba..173aa237861 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/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)) {
OpenPOWER on IntegriCloud