Skip to content

Commit b2aff93

Browse files
author
bors-servo
authored
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.
2 parents f498903 + bc2f3e9 commit b2aff93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ir/item.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,9 @@ impl ClangItemParser for Item {
821821
// too noisy about this.
822822
match cursor.kind() {
823823
CXCursor_MacroDefinition |
824+
CXCursor_MacroExpansion |
825+
CXCursor_UsingDeclaration |
826+
CXCursor_StaticAssert |
824827
CXCursor_InclusionDirective => {
825828
debug!("Unhandled cursor kind {:?}: {:?}",
826829
cursor.kind(),

0 commit comments

Comments
 (0)