We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee5c49 commit 4730ae7Copy full SHA for 4730ae7
src/lib/Lib/ExecutionContext.cpp
@@ -14,6 +14,7 @@
14
#include "ExecutionContext.hpp"
15
#include "lib/Metadata/Reduce.hpp"
16
#include <mrdocs/Metadata.hpp>
17
+#include <mrdocs/Metadata/Info/Namespace.hpp>
18
#include <ranges>
19
20
namespace clang {
@@ -69,7 +70,16 @@ report(
69
70
{
71
auto it = info_.find(other->id);
72
MRDOCS_ASSERT(it != info_.end());
- merge(**it, std::move(*other));
73
+ if (auto ns = dynamic_cast<NamespaceInfo*>(it->get()))
74
+ {
75
+ auto otherNs = dynamic_cast<NamespaceInfo*>(other.get());
76
+ MRDOCS_ASSERT(otherNs);
77
+ merge(*ns, std::move(*otherNs));
78
+ }
79
+ else
80
81
+ merge(**it, std::move(*other));
82
83
}
84
85
// Merge diagnostics and report any new messages.
0 commit comments