summaryrefslogtreecommitdiff
path: root/src/ir/comp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/comp.rs')
-rw-r--r--src/ir/comp.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir/comp.rs b/src/ir/comp.rs
index 52dcddd5..d57c272a 100644
--- a/src/ir/comp.rs
+++ b/src/ir/comp.rs
@@ -1249,6 +1249,7 @@ impl CompInfo {
let mut ci = CompInfo::new(kind);
ci.is_forward_declaration =
location.map_or(true, |cur| match cur.kind() {
+ CXCursor_ParmDecl => true,
CXCursor_StructDecl | CXCursor_UnionDecl |
CXCursor_ClassDecl => !cur.is_definition(),
_ => false,