public Diagnostic(DiagnosticLevel level, string message, CXSourceLocation location) { if (string.IsNullOrWhiteSpace(message)) { throw new ArgumentNullException(nameof(message)); } _level = level; _message = message; _location = location.ToString(); }
public static extern CXCursor getCursor(CXTranslationUnit @param0, CXSourceLocation @param1);
public static extern void getFileLocation(CXSourceLocation @location, out CXFile @file, out uint @line, out uint @column, out uint @offset);
public static extern void getPresumedLocation(CXSourceLocation @location, out CXString @filename, out uint @line, out uint @column);
public static extern CXSourceRange getRange(CXSourceLocation @begin, CXSourceLocation @end);
public static extern int Location_isFromMainFile(CXSourceLocation @location);
public static extern int Location_isInSystemHeader(CXSourceLocation @location);
public static extern uint equalLocations(CXSourceLocation @loc1, CXSourceLocation @loc2);
public Diagnostic(DiagnosticLevel level, string message, CXSourceLocation location) : this(level, message, location.ToString().Replace('\\', '/')) { }
public unsafe ref CXToken GetToken(CXSourceLocation sourceLocation) => ref *(CXToken *)clang.getToken(this, sourceLocation);
public CXCursor GetCursor(CXSourceLocation location) => clang.getCursor(this, location);
public CXSourceRange Create(CXSourceLocation begin, CXSourceLocation end) => clang.getRange(begin, end);