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