Open db48x opened 5 days ago
The problem is I don't handle unnamed/anonymous namespaces yet, this will be fixed soon.
No worries. For the moment I just did this to let it run for longer to see what it generates:
@@ -472,9 +472,9 @@ impl<'a> Parser<'a> {
}
clang::EntityKind::Namespace => {
- let name = node.get_name().unwrap();
+ let name = node.get_name().unwrap_or_else(|| String::from("<anonymous namespace>"));
let mut real_ns = Namespace {
- name: node.get_name().unwrap(),
+ name: name.clone(),
comment: node.get_comment().map(comment::parse_comment),
records: Vec::new(),
functions: Vec::new(),
Yes, this makes sense. I'm not sure how to handle anonymous namespaces yet, it should probably be done on a per-file basis.
achievement.cpp has this near the top:
I honestly couldn’t tell you why though.