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

Function getGccDumpViewWith

static/components.ts:493–514  ·  view source on GitHub ↗
(
    id: number,
    compilerName: string,
    editorid: number,
    treeid: number,
    gccDumpOutput: GccDumpOutput | undefined,
)

Source from the content-addressed store, hash-verified

491
492/** Get a gcc dump view with the given configuration. */
493export function getGccDumpViewWith(
494 id: number,
495 compilerName: string,
496 editorid: number,
497 treeid: number,
498 gccDumpOutput: GccDumpOutput | undefined,
499): ComponentConfig<typeof GCC_DUMP_VIEW_COMPONENT_NAME> {
500 return {
501 type: 'component',
502 componentName: GCC_DUMP_VIEW_COMPONENT_NAME,
503 componentState: {
504 // PopulatedGccDumpViewState
505 id,
506 compilerName,
507 editorid,
508 treeid,
509
510 // & GccDumpFiltersState
511 ...gccDumpOutput,
512 },
513 };
514}
515
516/** Get an empty cfg view component. */
517export function getCfgView(): ComponentConfig<typeof CFG_VIEW_COMPONENT_NAME> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected