Declare Extern Prototype

An error is triggered when an implementation does not have a corresponding declaration, for example in the case of functions.

Place the editor cursor on the error’s line and press Ctrl+1, select Declare extern function prototype … from the list of quick fix proposals and press Enter.

../../_images/sv_quick_fix_declare_extern_function_prototype_list.png

The method prototype is inserted in the appropriate scope.

../../_images/sv_quick_fix_declare_extern_function_prototype_after.png

Note

The method signature (return type, argument names and types) is automatically detected from the context.

Note

Depending on the context, several quick fix proposals might be available:

  • declare extern function prototype

  • declare extern task prototype

  • declare extern constraint prototype (implicit or explicit)

Tip

You can change the method signature or constraint block by editing the Method Code Templates or Constraint Code Templates.