File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,9 @@ class BodyIndexer : public RecursiveASTVisitor<BodyIndexer> {
130130
131131 void addCallRole (SymbolRoleSet &Roles,
132132 SmallVectorImpl<SymbolRelation> &Relations) {
133+ if (isa<CXXDeductionGuideDecl>(ParentDC))
134+ return ;
135+
133136 Roles |= (unsigned )SymbolRole::Call;
134137 if (auto *FD = dyn_cast<FunctionDecl>(ParentDC))
135138 Relations.emplace_back ((unsigned )SymbolRole::RelationCalledBy, FD);
Original file line number Diff line number Diff line change 1+ // RUN: c-index-test core -print-source-symbols -- %s -std=gnu++17 | FileCheck %s
2+
3+ template <typename T>
4+ typename T::type declval () {}
5+ template <typename T> struct Test ;
6+ template <typename C, typename T = decltype (declval<C>().d())> Test (C &) -> Test<T>;
7+ // CHECK: [[@LINE-1]]:45 | function/C | declval
8+ // CHECK-NOT: RelCall
9+ // CHECK: [[@LINE-3]]:77 | struct(Gen)/C++ | Test
10+ // CHECK: [[@LINE-4]]:64 | struct(Gen)/C++ | Test
You can’t perform that action at this time.
0 commit comments