summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-05 06:09:13 -0500
committerGitHub <noreply@github.com>2016-11-05 06:09:13 -0500
commitb2aff933f37e45dd88f8761dba6e4b55a13dd098 (patch)
tree219fdc2c35be4e4afd760e839d7321af88616fca
parentf4989039ce6366c25cc1650a9801b99d7e7a26a4 (diff)
parentbc2f3e99f43d8d256bf1c8004e1a00d0859d0871 (diff)
Auto merge of #212 - fitzgen:ignore-macro-expansions, r=emilio
Don't be loud about ignoring macro expansion cursors r? @emilio We walk the expanded code already. These cursors are children of the translation unit for some reason, and let you iterate over tokens from before the macro was expanded. Pretty safe to ignore here.
-rw-r--r--src/ir/item.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir/item.rs b/src/ir/item.rs
index 6d2d4b02..a07ee1f3 100644
--- a/src/ir/item.rs
+++ b/src/ir/item.rs
@@ -821,6 +821,9 @@ impl ClangItemParser for Item {
// too noisy about this.
match cursor.kind() {
CXCursor_MacroDefinition |
+ CXCursor_MacroExpansion |
+ CXCursor_UsingDeclaration |
+ CXCursor_StaticAssert |
CXCursor_InclusionDirective => {
debug!("Unhandled cursor kind {:?}: {:?}",
cursor.kind(),