| 173 | } |
| 174 | |
| 175 | std::string UTModify::generateDeclTypeName(const Type &T) const { |
| 176 | std::string TypeName = ""; |
| 177 | if (T.isPointerType()) { |
| 178 | const auto *PointerT = &T; |
| 179 | const auto *PointeeT = PointerT->getPointeeType(); |
| 180 | |
| 181 | while (PointerT != PointeeT) { |
| 182 | TypeName += "*"; |
| 183 | PointerT = PointeeT; |
| 184 | PointeeT = PointerT->getPointeeType(); |
| 185 | } |
| 186 | assert(PointeeT && "Unexpected Program State"); |
| 187 | |
| 188 | TypeName = PointeeT->getASTTypeName() + " " + TypeName; |
| 189 | } else { |
| 190 | TypeName = T.getASTTypeName(); |
| 191 | } |
| 192 | return util::stripConstExpr(TypeName); |
| 193 | } |
| 194 | |
| 195 | void UTModify::generateFuzzVarDeclarations( |
| 196 | std::map<std::string, std::string> &FuzzVarDecls, |
nothing calls this directly
no test coverage detected