Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing assert conversion #400

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ case class ComponentInputPorts(
"""|FW_ASSERT(callComp);
|
|const U32 idBase = callComp->getIdBase();
|FW_ASSERT(opCode >= idBase, opCode, idBase);
|FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
|"""
)
else List(
Expand All @@ -285,7 +285,7 @@ case class ComponentInputPorts(
|$className* compPtr = static_cast<$className*>(callComp);
|
|const U32 idBase = callComp->getIdBase();
|FW_ASSERT(opCode >= idBase, opCode, idBase);
|FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
|
|// Select base class function based on opcode
|"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ void ActiveAsyncProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void ActiveAsyncProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4099,7 +4099,7 @@ void ActiveCommandsComponentBase ::
ActiveCommandsComponentBase* compPtr = static_cast<ActiveCommandsComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3424,7 +3424,7 @@ void ActiveEventsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,7 @@ void ActiveGetProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3172,7 +3172,7 @@ void ActiveGuardedProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void ActiveGuardedProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3067,7 +3067,7 @@ void ActiveParamsComponentBase ::
ActiveParamsComponentBase* compPtr = static_cast<ActiveParamsComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6678,7 +6678,7 @@ void ActiveSerialComponentBase ::
ActiveSerialComponentBase* compPtr = static_cast<ActiveSerialComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,7 @@ void ActiveSyncProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void ActiveSyncProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3129,7 +3129,7 @@ void ActiveTelemetryComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6496,7 +6496,7 @@ namespace M {
ActiveTestComponentBase* compPtr = static_cast<ActiveTestComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2269,7 +2269,7 @@ void PassiveCommandsComponentBase ::
PassiveCommandsComponentBase* compPtr = static_cast<PassiveCommandsComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,7 @@ void PassiveEventsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,7 @@ void PassiveGetProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2006,7 +2006,7 @@ void PassiveGuardedProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void PassiveGuardedProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ void PassiveParamsComponentBase ::
PassiveParamsComponentBase* compPtr = static_cast<PassiveParamsComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3911,7 +3911,7 @@ void PassiveSerialComponentBase ::
PassiveSerialComponentBase* compPtr = static_cast<PassiveSerialComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ void PassiveSyncProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void PassiveSyncProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1963,7 +1963,7 @@ void PassiveTelemetryComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4125,7 +4125,7 @@ void PassiveTestComponentBase ::
PassiveTestComponentBase* compPtr = static_cast<PassiveTestComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3252,7 +3252,7 @@ void QueuedAsyncProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void QueuedAsyncProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4104,7 +4104,7 @@ void QueuedCommandsComponentBase ::
QueuedCommandsComponentBase* compPtr = static_cast<QueuedCommandsComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3429,7 +3429,7 @@ void QueuedEventsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,7 @@ void QueuedGetProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3172,7 +3172,7 @@ void QueuedGuardedProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void QueuedGuardedProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3072,7 +3072,7 @@ void QueuedParamsComponentBase ::
QueuedParamsComponentBase* compPtr = static_cast<QueuedParamsComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6683,7 +6683,7 @@ void QueuedSerialComponentBase ::
QueuedSerialComponentBase* compPtr = static_cast<QueuedSerialComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3166,7 +3166,7 @@ void QueuedSyncProductsComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

void QueuedSyncProductsComponentBase ::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3134,7 +3134,7 @@ void QueuedTelemetryComponentBase ::
FW_ASSERT(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));
}

// ----------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6499,7 +6499,7 @@ void QueuedTestComponentBase ::
QueuedTestComponentBase* compPtr = static_cast<QueuedTestComponentBase*>(callComp);

const U32 idBase = callComp->getIdBase();
FW_ASSERT(opCode >= idBase, opCode, idBase);
FW_ASSERT(opCode >= idBase, static_cast<FwAssertArgType>(opCode), static_cast<FwAssertArgType>(idBase));

// Select base class function based on opcode
switch (opCode - idBase) {
Expand Down
Loading