Update the CXDiagnostic API to 3.1