Skip to content

Clang: partial workaround for parsing default arg values skipping macros

See https://bugs.kde.org/show_bug.cgi?id=369546

No clue about the clang API and thus how to properly fix things myself. So this patch fixes at least for now any wrong mapping of default argument values to arguments due to skipped entries for unparsed macros, by adding some placeholder. "KDEV TODO" is my try to have something short which signals that this is some internal issue and known. Surely there will still be bugs reported about seeing this string, but no better idea.

@kfunk @mwolff Would you have any idea how to improve CXChildVisitResult paramVisitor(CXCursor cursor, CXCursor /*parent*/, CXClientData data)? clang_getCursorExtent as currently relied on seems to stop at the macro border by what my debug output told me.

Merge request reports