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

Function getFixedLengthArrayAssignStmt

include/ftg/utils/AssignUtil.h:58–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static std::string inline getFixedLengthArrayAssignStmt(std::string LHS,
59 std::string RHS) {
60 std::string SizeStr = util::getAvasFuzzSizeVarName(RHS);
61 return "{ for (unsigned i=0; i<" + SizeStr + "; ++i) { " + LHS +
62 "[i] = " + RHS + "[i]; } }";
63}
64
65static std::string inline wrapWithExternCStmt(std::string Str) {
66 std::string Prefix = "#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n";

Callers 1

Calls 1

getAvasFuzzSizeVarNameFunction · 0.85

Tested by

no test coverage detected