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

Method setType

lib/generation/FuzzInput.cpp:420–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418
419void AssignVar::setName(std::string VarName) { this->VarName = VarName; }
420void AssignVar::setType(Type &FTGType) {
421 const Type *ObjectTy = FTGType.getRealType(/*getArrayPointee=*/true);
422 if (ObjectTy->isFixedLengthArrayPtr() && ObjectTy->isStringType()) {
423 ObjectTy = ObjectTy->getPointeeType();
424 TypeStr = util::stripConstExpr(ObjectTy->getASTTypeName());
425 } else
426 TypeStr = util::getFuzzInputTypeString(ObjectTy->getASTTypeName());
427}
428void AssignVar::setNameSpace(std::string NameSpace) {
429 this->NameSpace = NameSpace;
430}

Callers 1

FuzzInputMethod · 0.80

Calls 7

stripConstExprFunction · 0.85
getFuzzInputTypeStringFunction · 0.85
getRealTypeMethod · 0.80
isFixedLengthArrayPtrMethod · 0.80
isStringTypeMethod · 0.80
getPointeeTypeMethod · 0.80
getASTTypeNameMethod · 0.80

Tested by

no test coverage detected