File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -219,11 +219,16 @@ std::unique_ptr<cpp_entity> detail::parse_entity(const detail::parse_context& co
219
219
detail::tokenizer tokenizer (context.tu , context.file , cur);
220
220
detail::token_stream stream (tokenizer, cur);
221
221
auto spelling = detail::to_string (stream, stream.end ());
222
+
223
+ std::unique_ptr<cppast::cpp_entity> entity;
222
224
if (name.empty ())
223
- return cpp_unexposed_entity::build (std::move (spelling));
225
+ entity = cpp_unexposed_entity::build (std::move (spelling));
224
226
else
225
- return cpp_unexposed_entity::build (*context.idx , detail::get_entity_id (cur),
226
- name.c_str (), std::move (spelling));
227
+ entity = cpp_unexposed_entity::build (*context.idx , detail::get_entity_id (cur),
228
+ name.c_str (), std::move (spelling));
229
+
230
+ context.comments .match (*entity, cur);
231
+ return entity;
227
232
}
228
233
else
229
234
return nullptr ;
You can’t perform that action at this time.
0 commit comments