
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 :kbd:`Ctrl+1`, select **Declare extern function prototype ...** from the list of quick fix proposals and press :kbd:`Enter`.

.. figure:: ../../images/common/sv_quick_fix_declare_extern_function_prototype_list.png

The method prototype is inserted in the appropriate scope.

.. figure:: ../../images/common/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 :ref:`Method Code Templates` or :ref:`Constraint Code Templates`.

