| 65 | } |
| 66 | |
| 67 | static CXFile GetRange(CXSourceRange range, int* startIdx, int* endIdx) |
| 68 | { |
| 69 | auto loc = clang_getRangeStart(range); |
| 70 | CXFile file; |
| 71 | uint32 line; |
| 72 | uint32 column; |
| 73 | clang_getFileLocation(loc, &file, &line, &column, (uint32*) startIdx); |
| 74 | loc = clang_getRangeEnd(range); |
| 75 | clang_getFileLocation(loc, &file, &line, &column, (uint32*) endIdx); |
| 76 | return file; |
| 77 | } |
| 78 | |
| 79 | static CXFile GetCursorRange(CXCursor cursor, int* startIdx, int* endIdx) |
| 80 | { |
no outgoing calls
no test coverage detected