Debian Codegraph @

clang/test/CodeCompletion/GH139019.cpp

raw
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: split-file %s %t
4 //
5 // RUN: %clang_cc1 -std=c++20 %t/test.hpp -emit-pch -o %t/1.pch
6 // RUN: %clang_cc1 -std=c++20 %t/test.cpp -include-pch %t/1.pch -code-completion-at=%t/test.cpp:7:17
7
8 //--- test.hpp
9 #pragma once
10 class provider_t
11 {
12 public:
13 template<class T>
14 void emit(T *data)
15 {}
16 };
17
18 //--- test.cpp
19 #include "test.hpp"
20
21 void test()
22 {
23 provider_t *focus;
24 void *data;
25 focus->emit(&data);
26 }