summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parser.rs b/src/parser.rs
index 86240eb2..78f60709 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -590,6 +590,10 @@ fn visit_composite(cursor: &Cursor, parent: &Cursor,
// `lexical_parent` should return the reference to the
// class, but I've tried everything I could think about and
// failed miserably.
+ //
+ // Also, there could be more complex cases, like a templated
+ // type in an inner type declaration, that this is
+ // completely unable to catch.
if child_cursor.kind() == CXCursor_ClassDecl &&
child_ci.args.is_empty() &&
child_ci.name == ci.name &&