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

Method OutputHeader

src/Function.cpp:527–544  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

525 *
526 */
527void
528Function::OutputHeader(std::ostream &out)
529{
530 if (!CGOptions::return_structs() && return_type)
531 assert(return_type->eType != eStruct);
532 if (!CGOptions::return_unions() && return_type)
533 assert(return_type->eType != eUnion);
534 if (is_inlined)
535 out << "inline ";
536 // force functions to be static if necessary
537 if (CGOptions::force_globals_static()) {
538 out << "static ";
539 }
540 rv->qfer.output_qualified_type(return_type, out);
541 out << " " << get_prefixed_name(name) << "(";
542 OutputFormalParamList( out );
543 out << ")";
544}
545
546/*
547 *

Callers 2

goGeneratorMethod · 0.45
goGeneratorMethod · 0.45

Calls 2

get_prefixed_nameFunction · 0.85
output_qualified_typeMethod · 0.45

Tested by

no test coverage detected