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

Method InclusionProc

IDEHelper/Clang/ClangHelper.cpp:224–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.70

Tested by

no test coverage detected