From: Alex Lorenz Date: Mon, 22 May 2017 15:42:45 +0000 (+0000) Subject: [index] Index the deleted functions X-Git-Tag: llvmorg-5.0.0-rc1~4590 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=832d8fcc630b75078078e932832f33f20aff8917;p=platform%2Fupstream%2Fllvm.git [index] Index the deleted functions rdar://32323386 llvm-svn: 303563 --- diff --git a/clang/lib/Index/IndexDecl.cpp b/clang/lib/Index/IndexDecl.cpp index 726568a..7f940ef 100644 --- a/clang/lib/Index/IndexDecl.cpp +++ b/clang/lib/Index/IndexDecl.cpp @@ -217,9 +217,6 @@ public: } bool VisitFunctionDecl(const FunctionDecl *D) { - if (D->isDeleted()) - return true; - SymbolRoleSet Roles{}; SmallVector Relations; if (auto *CXXMD = dyn_cast(D)) { diff --git a/clang/test/Index/Core/index-source.cpp b/clang/test/Index/Core/index-source.cpp index 5f2044e..e5f58d1 100644 --- a/clang/test/Index/Core/index-source.cpp +++ b/clang/test/Index/Core/index-source.cpp @@ -366,3 +366,11 @@ struct IndexDefaultValue { // CHECK: [[@LINE-2]]:30 | struct/C++ | Record | c:@S@Record | | Ref,RelCont | rel: 1 } }; + +struct DeletedMethods { + DeletedMethods(const DeletedMethods &) = delete; +// CHECK: [[@LINE-1]]:3 | constructor/cxx-copy-ctor/C++ | DeletedMethods | c:@S@DeletedMethods@F@DeletedMethods#&1$@S@DeletedMethods# | __ZN14DeletedMethodsC1ERKS_ | Def,RelChild | rel: 1 +// CHECK: RelChild | DeletedMethods | c:@S@DeletedMethods +// CHECK: [[@LINE-3]]:24 | struct/C++ | DeletedMethods | c:@S@DeletedMethods | | Ref,RelCont | rel: 1 +// CHECK: [[@LINE-4]]:3 | struct/C++ | DeletedMethods | c:@S@DeletedMethods | | Ref,RelCont | rel: 1 +};