protected void LogMessage(CppLogMessageType type, string message, CppSourceLocation?location = null) { // Try to recover a proper location var locationResolved = location ?? new CppSourceLocation(); // In case we have an unexpected BuilderException, use this location instead Log(new CppDiagnosticMessage(type, message, locationResolved)); }
public void Warning(string message, CppSourceLocation?location = null) { LogMessage(CppLogMessageType.Warning, message, location); }
public void Error(string message, CppSourceLocation?location = null) { LogMessage(CppLogMessageType.Error, message, location); }
public void Info(string message, CppSourceLocation?location = null) { LogMessage(CppLogMessageType.Info, message, location); }