File tree Expand file tree Collapse file tree 1 file changed +34
-3
lines changed
src/lib/Metadata/Finalizers Expand file tree Collapse file tree 1 file changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,36 @@ finalize(NameInfo& name)
221
221
});
222
222
}
223
223
224
+ namespace {
225
+ void
226
+ qualifiedName (InfoSet& info, Info const & I, std::string& result)
227
+ {
228
+ if (I.Parent &&
229
+ I.Parent != SymbolID::global)
230
+ {
231
+ Info const & PI = *info.find (I.Parent )->get ();
232
+ qualifiedName (info, PI, result);
233
+ result += " ::" ;
234
+ }
235
+ if (!I.Name .empty ())
236
+ {
237
+ result += I.Name ;
238
+ }
239
+ else
240
+ {
241
+ result += " <anonymous>" ;
242
+ }
243
+ }
244
+
245
+ std::string
246
+ qualifiedName (InfoSet& info, Info const & I)
247
+ {
248
+ std::string res;
249
+ qualifiedName (info, I, res);
250
+ return res;
251
+ }
252
+ } // (anonymous)
253
+
224
254
void
225
255
ReferenceFinalizer::
226
256
finalize (doc::Node& node)
@@ -237,10 +267,11 @@ finalize(doc::Node& node)
237
267
if (!resolveReference (N) &&
238
268
!warned_.contains ({N.string , current_->Name }))
239
269
{
270
+ MRDOCS_ASSERT (current_);
240
271
report::warn (
241
- " Failed to resolve reference to '{}' from '{}'" ,
242
- N. string ,
243
- current_-> Name );
272
+ " {}: Failed to resolve reference to '{}'" ,
273
+ qualifiedName (info_, *current_) ,
274
+ N. string );
244
275
warned_.insert ({N.string , current_->Name });
245
276
}
246
277
}
You can’t perform that action at this time.
0 commit comments