MCPcopy Create free account
hub / github.com/Samsung/UTopia / add

Method add

lib/propanalysis/AllocSizeAnalysisReport.cpp:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void AllocSizeAnalysisReport::add(ArgFlow &AF, std::vector<int> Indices) {
33 auto &A = AF.getLLVMArg();
34 set(A, AF.isAllocSize(), Indices);
35
36 auto SI = AF.getStructInfo();
37 if (!SI)
38 return;
39
40 for (auto Iter : SI->FieldResults) {
41 if (!Iter.second)
42 continue;
43
44 Indices.push_back(Iter.first);
45 add(*Iter.second, Indices);
46 Indices.pop_back();
47 }
48}
49
50} // namespace ftg

Callers

nothing calls this directly

Calls 2

isAllocSizeMethod · 0.80
getStructInfoMethod · 0.80

Tested by

no test coverage detected