MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getClangirViewWith

Function getClangirViewWith

static/components.ts:605–625  ·  view source on GitHub ↗
(
    id: number,
    source: string,
    clangirOutput: unknown,
    compilerName: string,
    editorid: number,
    treeid: number,
)

Source from the content-addressed store, hash-verified

603}
604
605export function getClangirViewWith(
606 id: number,
607 source: string,
608 clangirOutput: unknown,
609 compilerName: string,
610 editorid: number,
611 treeid: number,
612): ComponentConfig<typeof CLANGIR_VIEW_COMPONENT_NAME> {
613 return {
614 type: 'component',
615 componentName: CLANGIR_VIEW_COMPONENT_NAME,
616 componentState: {
617 id,
618 source,
619 clangirOutput,
620 compilerName,
621 editorid,
622 treeid,
623 },
624 };
625}
626
627/** Get an empty opt pipeline view component. */
628export function getOptPipelineView(): ComponentConfig<typeof OPT_PIPELINE_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected