summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clang.rs2
-rw-r--r--src/ir/comp.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/clang.rs b/src/clang.rs
index 96f77254..db6467e3 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -241,7 +241,7 @@ impl Cursor {
self.x.kind
}
- /// Returns true is the cursor is a definition
+ /// Returns true if the cursor is a definition
pub fn is_definition(&self) -> bool {
unsafe { clang_isCursorDefinition(self.x) != 0 }
}
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,