File tree Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 7
7
F(Enum) \
8
8
F(Field) \
9
9
F(Function) \
10
+ F(FunctionTemplate) \
10
11
F(Namespace) \
11
12
F(NonTypeTemplateParm) \
12
13
F(Record) \
Original file line number Diff line number Diff line change @@ -474,6 +474,11 @@ void TuIndexer::saveFunctionDecl(const clang::FunctionDecl &functionDecl) {
474
474
}
475
475
}
476
476
477
+ void TuIndexer::saveFunctionTemplateDecl (const clang::FunctionTemplateDecl &) {
478
+ // Handled by saveFunctionDecl.
479
+ return ;
480
+ }
481
+
477
482
void TuIndexer::saveNamespaceDecl (const clang::NamespaceDecl &namespaceDecl) {
478
483
auto optSymbol = this ->symbolFormatter .getNamespaceSymbol (namespaceDecl);
479
484
if (!optSymbol.has_value ()) {
Original file line number Diff line number Diff line change @@ -447,6 +447,11 @@ SymbolFormatter::getFunctionSymbol(const clang::FunctionDecl &functionDecl) {
447
447
});
448
448
}
449
449
450
+ std::optional<std::string_view> SymbolFormatter::getFunctionTemplateSymbol (
451
+ const clang::FunctionTemplateDecl &functionTemplateDecl) {
452
+ return this ->getFunctionSymbol (*functionTemplateDecl.getTemplatedDecl ());
453
+ }
454
+
450
455
std::optional<std::string_view>
451
456
SymbolFormatter::getFieldSymbol (const clang::FieldDecl &fieldDecl) {
452
457
if (fieldDecl.getDeclName ().isEmpty ()) {
Original file line number Diff line number Diff line change 88
88
C c3{move (c1)};
89
89
// ^ reference [..] C#
90
90
// ^^ definition local 10
91
+ // ^^^^ reference [..] move(721d19cf58c53974).
91
92
// ^^ reference local 7
92
93
D d3{move (d1)};
93
94
// ^ reference [..] D#
94
95
// ^^ definition local 11
95
96
// ^^ reference [..] D#D(ece7426db7e2c886).
97
+ // ^^^^ reference [..] move(721d19cf58c53974).
96
98
// ^^ reference local 8
97
99
98
100
C c4 = {};
130
132
C c10 = move (c1);
131
133
// ^ reference [..] C#
132
134
// ^^^ definition local 20
135
+ // ^^^^ reference [..] move(721d19cf58c53974).
133
136
// ^^ reference local 7
134
137
D d10 = move (d1);
135
138
// ^ reference [..] D#
136
139
// ^^^ definition local 21
137
140
// ^^^^ reference [..] D#D(ece7426db7e2c886).
141
+ // ^^^^ reference [..] move(721d19cf58c53974).
138
142
// ^^ reference local 8
139
143
}
Original file line number Diff line number Diff line change 84
84
// ^^ reference [..] T0#g0(b07662a27bd562f9).
85
85
86
86
h0<int >(0 );
87
+ // ^^ reference [..] h0(9b289cee16747614).
87
88
h0<void *>(0 );
89
+ // ^^ reference [..] h0(9b289cee16747614).
88
90
h1<int >(0 );
91
+ // ^^ reference [..] h1(9b289cee16747614).
89
92
h1<char >(0 );
93
+ // ^^ reference [..] h1(9b289cee16747614).
90
94
}
You can’t perform that action at this time.
0 commit comments