Ignore macro expansion cursors
This commit is contained in:
parent
98e709fdfc
commit
be0390446d
1 changed files with 2 additions and 1 deletions
|
|
@ -516,7 +516,8 @@ std::unique_ptr<cpp_file> libclang_parser::do_parse(const cpp_entity_index& idx,
|
||||||
++include_iter;
|
++include_iter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (clang_getCursorKind(cur) != CXCursor_MacroDefinition)
|
else if (clang_getCursorKind(cur) != CXCursor_MacroDefinition
|
||||||
|
&& clang_getCursorKind(cur) != CXCursor_MacroExpansion)
|
||||||
{
|
{
|
||||||
// add macro if needed
|
// add macro if needed
|
||||||
for (auto line = get_line_no(cur);
|
for (auto line = get_line_no(cur);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue