Skip to content

Added Cursor::get_kind_spelling

Ole Christian Eidheim requested to merge Windfisch:master into master

Created by: Windfisch

Hi! i've added a Cursor::get_kind_spelling() method which wraps a clang_getCursorKindSpelling(clang_getCursorKind(cx_cursor)) call.

The reason to not use to_string( clang_getCursorKindSpelling( static_cast<CXCursorKind>(mycursor.get_kind()) ) ) is the unsafe CXString return and the necessary static_cast which makes things quite bulky. Compare this to mycursor.get_kind_spelling().

Merge request reports