diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2016-11-14 13:25:07 -0800 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2016-11-14 13:28:00 -0800 |
commit | d18ec2b587562a4747b6aca29076fc80f8aede54 (patch) | |
tree | 9fe9a77b6c1f532dffe779e4373d645f9cb45193 /src | |
parent | 004a19537f1f40e77aacdc13a2f56a8553e63dc9 (diff) |
Warn when giving up and assuming a named type
When we fail to parse Clang stuff into our IR and give up, and assume
that we are looking at a named template type, we now emit a warning to
assist with debugging.
Diffstat (limited to 'src')
-rw-r--r-- | src/ir/item.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/item.rs b/src/ir/item.rs index 691cfec2..e25335bf 100644 --- a/src/ir/item.rs +++ b/src/ir/item.rs @@ -1051,6 +1051,9 @@ impl ClangItemParser for Item { // It's harmless, but if we restrict that, then // tests/headers/nsStyleAutoArray.hpp crashes. if let Err(ParseError::Recurse) = result { + warn!("Unknown type, assuming named template type: id = {:?}; spelling = {}", + id, + ty.spelling()); Ok(Self::named_type_with_id(id, ty.spelling(), None, |