We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ee5c49 commit 13b1fcbCopy full SHA for 13b1fcb
src/lib/Lib/ExecutionContext.cpp
@@ -13,7 +13,9 @@
13
14
#include "ExecutionContext.hpp"
15
#include "lib/Metadata/Reduce.hpp"
16
+#include "mrdocs/Support/Assert.hpp"
17
#include <mrdocs/Metadata.hpp>
18
+#include <mrdocs/Metadata/Info/Namespace.hpp>
19
#include <ranges>
20
21
namespace clang {
@@ -69,7 +71,11 @@ report(
69
71
{
70
72
auto it = info_.find(other->id);
73
MRDOCS_ASSERT(it != info_.end());
- merge(**it, std::move(*other));
74
+ visit(**it, [&]<typename T>(T& target) {
75
+ auto *source = dynamic_cast<T*>(other.get());
76
+ MRDOCS_ASSERT(source);
77
+ merge(target, std::move(*source));
78
+ });
79
}
80
81
// Merge diagnostics and report any new messages.
0 commit comments