MCPcopy Create free account
hub / github.com/beefytech/Beef / GetRange

Function GetRange

IDEHelper/Clang/ClangHelper.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static 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
79static CXFile GetCursorRange(CXCursor cursor, int* startIdx, int* endIdx)
80{

Callers 2

GetCursorRangeFunction · 0.85
ClassifyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected