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