Proof of concept for generating debug print operators from classes defined in header.
Parsing C++ is difficult, so instead we get around that by making Doxygen do it for us.
The resultant XML file is used by the python script to autogenerate the include/generated_debug_operators.hpp file.
Run make and then run ./debug_app.
Currently the repo is set to generate the header
#pragma once
#include <ostream>
#include "person.hpp"
inline std::ostream& operator<<(std::ostream& os, const Person& obj)
{
os << "Person{";
os << "age=" << obj.age;
os << ", name=" << obj.name;
os << ", height=" << obj.height;
os << "}";
return os;
}from the classes defined in the project (which is just Person).