llvm-project/clang/test/Index/index-deduction-guide.cpp
Ben Barham 7abca756d1
[Index] Skip adding call relations to deduction guides (#126151)
Deduction guides have no name and we already skip adding occurrences to
them for that reason. Also skip adding any relations to them.
2025-02-07 12:02:13 -08:00

11 lines
424 B
C++

// RUN: c-index-test core -print-source-symbols -- %s -std=gnu++17 | FileCheck %s
template<typename T>
typename T::type declval() {}
template <typename T> struct Test;
template <typename C, typename T = decltype(declval<C>().d())> Test(C &) -> Test<T>;
// CHECK: [[@LINE-1]]:45 | function/C | declval
// CHECK-NOT: RelCall
// CHECK: [[@LINE-3]]:77 | struct(Gen)/C++ | Test
// CHECK: [[@LINE-4]]:64 | struct(Gen)/C++ | Test