Пример #1
0
        public Diagnostic(DiagnosticLevel level, string message, CXSourceLocation location)
        {
            if (string.IsNullOrWhiteSpace(message))
            {
                throw new ArgumentNullException(nameof(message));
            }

            _level    = level;
            _message  = message;
            _location = location.ToString();
        }
Пример #2
0
 public static extern CXCursor getCursor(CXTranslationUnit @param0, CXSourceLocation @param1);
Пример #3
0
 public static extern void getFileLocation(CXSourceLocation @location, out CXFile @file, out uint @line, out uint @column, out uint @offset);
Пример #4
0
 public static extern void getPresumedLocation(CXSourceLocation @location, out CXString @filename, out uint @line, out uint @column);
Пример #5
0
 public static extern CXSourceRange getRange(CXSourceLocation @begin, CXSourceLocation @end);
Пример #6
0
 public static extern int Location_isFromMainFile(CXSourceLocation @location);
Пример #7
0
 public static extern int Location_isInSystemHeader(CXSourceLocation @location);
Пример #8
0
 public static extern uint equalLocations(CXSourceLocation @loc1, CXSourceLocation @loc2);
Пример #9
0
 public Diagnostic(DiagnosticLevel level, string message, CXSourceLocation location) : this(level, message, location.ToString().Replace('\\', '/'))
 {
 }
Пример #10
0
 public unsafe ref CXToken GetToken(CXSourceLocation sourceLocation) => ref *(CXToken *)clang.getToken(this, sourceLocation);
Пример #11
0
 public CXCursor GetCursor(CXSourceLocation location) => clang.getCursor(this, location);
Пример #12
0
 public CXSourceRange Create(CXSourceLocation begin, CXSourceLocation end) => clang.getRange(begin, end);