| 192 | } |
| 193 | |
| 194 | CXChildVisitResult Visit(CXCursor cursor, CXCursor parent) |
| 195 | { |
| 196 | CXFile includedFile = clang_getIncludedFile(cursor); |
| 197 | if (includedFile != NULL) |
| 198 | { |
| 199 | String fileName = ToString(clang_getFileName(includedFile)); |
| 200 | mFileSet.insert(fileName); |
| 201 | } |
| 202 | |
| 203 | auto range = clang_getCursorExtent(cursor); |
| 204 | CXFile file; |
| 205 | uint32 line; |
| 206 | uint32 column; |
| 207 | uint32 offset; |
| 208 | clang_getFileLocation(clang_getRangeStart(range), &file, &line, &column, &offset); |
| 209 | |
| 210 | if (!clang_File_isEqual(file, mPrevFile)) |
| 211 | { |
| 212 | String fileName = ToString(clang_getFileName(file)); |
| 213 | mFileSet.insert(fileName); |
| 214 | } |
| 215 | |
| 216 | return CXChildVisit_Recurse; |
| 217 | } |
| 218 | |
| 219 | static CXChildVisitResult VisitProc(CXCursor cursor, CXCursor parent, CXClientData clientData) |
| 220 | { |
nothing calls this directly
no test coverage detected