| 41 | } |
| 42 | |
| 43 | void FilePathAnalysisReport::add(ArgFlow &AF, std::vector<int> Indices) { |
| 44 | auto &A = AF.getLLVMArg(); |
| 45 | set(A, AF.isFilePathString(), Indices); |
| 46 | |
| 47 | auto SI = AF.getStructInfo(); |
| 48 | if (!SI) |
| 49 | return; |
| 50 | |
| 51 | for (auto Iter : SI->FieldResults) { |
| 52 | if (!Iter.second) |
| 53 | continue; |
| 54 | |
| 55 | Indices.push_back(Iter.first); |
| 56 | add(*Iter.second, Indices); |
| 57 | Indices.pop_back(); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | } // end namespace ftg |
nothing calls this directly
no test coverage detected