:operationName: function
:visibility: 

include::../why.adoc[]

[source,cpp]
----
static void unusedStaticFunction() { // Noncompliant
}

class Server {
public:
  void start() { // Compliant, the member function "start()" is public
    log("start");
  }
private:
  void clear() { // Noncompliant, the member function "clear()" is unused
  }
  void log(const char * msg) { // Compliant, the member function "log()" is used in "start() { ... }"
    printf(msg);
  }
};
----

== Resources

=== External coding guidelines

* MISRA {cpp}:2008, 0-1-10 - Every defined function shall be called at least once.

ifdef::env-github,rspecator-view[]

'''
== Implementation Specification
(visible only on this page)

include::../message.adoc[]

'''
== Comments And Links
(visible only on this page)

include::../comments-and-links.adoc[]

endif::env-github,rspecator-view[]
