| 222 | } |
| 223 | |
| 224 | void InclusionProc(CXFile includedFile, CXSourceLocation* inclusionStack, unsigned includeLen) |
| 225 | { |
| 226 | String fileName = ToString(clang_getFileName(includedFile)); |
| 227 | |
| 228 | String outData = "### " + fileName + " : \n"; |
| 229 | for (int i = 0; i < (int)includeLen; i++) |
| 230 | { |
| 231 | for (int j = -5; j < i; j++) |
| 232 | outData += " "; |
| 233 | |
| 234 | CXFile file; |
| 235 | uint32 line; |
| 236 | uint32 column; |
| 237 | uint32 offset; |
| 238 | clang_getFileLocation(inclusionStack[i], &file, &line, &column, &offset); |
| 239 | |
| 240 | CXString str = clang_getFileName(file); |
| 241 | outData += ToString(str) + "\n"; |
| 242 | } |
| 243 | OutputDebugStr(outData); |
| 244 | |
| 245 | mFileSet.insert(fileName); |
| 246 | } |
| 247 | |
| 248 | static void InclusionProc(CXFile includedFile, CXSourceLocation* inclusionStack, unsigned includeLen, CXClientData clientData) |
| 249 | { |
nothing calls this directly
no test coverage detected