Parse enums

This commit is contained in:
Jonathan Müller 2017-02-23 17:52:11 +01:00
commit a47e66e2c4
16 changed files with 262 additions and 109 deletions

View file

@ -152,6 +152,9 @@ namespace
} while (!token_after_is(tu, file, cur, end, ";"));
end = get_next_location(tu, file, end);
}
else if (clang_isExpression(clang_getCursorKind(cur)))
// need to shrink range by one
end = get_next_location(tu, file, end, -1);
return clang_getRange(begin, end);
}