Beispiel #1
0
        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));
        }
Beispiel #2
0
 public void Warning(string message, CppSourceLocation?location = null)
 {
     LogMessage(CppLogMessageType.Warning, message, location);
 }
Beispiel #3
0
 public void Error(string message, CppSourceLocation?location = null)
 {
     LogMessage(CppLogMessageType.Error, message, location);
 }
Beispiel #4
0
 public void Info(string message, CppSourceLocation?location = null)
 {
     LogMessage(CppLogMessageType.Info, message, location);
 }