add platform info to libclang diagnostic function