MCPcopy Create free account
hub / github.com/csmith-project/csmith / OutputDecl

Method OutputDecl

src/ArrayVariable.cpp:547–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

545}
546
547void ArrayVariable::OutputDecl(std::ostream &out) const
548{
549 // force global variables to be static if necessary
550 if (CGOptions::force_globals_static() && is_global()) {
551 out << "static ";
552 }
553 output_qualified_type(out);
554 out << get_actual_name();
555 size_t i;
556 for (i=0; i<sizes.size(); i++) {
557 out << "[" << sizes[i] << "]";
558 }
559}
560
561// --------------------------------------------------------------
562void

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected