std::string libclang_vim::stringize_cursor_kind_type(CXCursorKind const& kind) { if (clang_isAttribute(kind)) return "Attribute"; if (clang_isDeclaration(kind)) return "Declaration"; if (clang_isExpression(kind)) return "Expression"; if (clang_isPreprocessing(kind)) return "Preprocessing"; if (clang_isReference(kind)) return "Reference"; if (clang_isStatement(kind)) return "Statement"; if (clang_isTranslationUnit(kind)) return "TranslationUnit"; if (clang_isUnexposed(kind)) return "Unexposed"; if (clang_isInvalid(kind)) return ""; return "Unknown"; }
bool cursor::isPreprocessing() const { return clang_isPreprocessing(kind()); }