#pragma once #include #include #include #include #include #include typedef std::function X_CXCursorVisitor; unsigned x_clang_visitChildren(CXCursor parent, X_CXCursorVisitor visitor); std::string x_clang_toString(CXString string); // Very simple parser // Example format: // name="Hello!", world=Test, read_only // Result: // "name": "Hello!", "world": "Test", "read_only": "" std::map parseAnnotationString(std::string src); std::optional findAnnotation(CXCursor cur, std::string annotationName); std::string string_of(std::filesystem::path path);