rspec/rules/S3231/rule.adoc
2020-06-30 17:16:12 +02:00

24 lines
261 B
Plaintext

Redundant forward declarations simply clutter the code, and like any duplications, should be removed.
== Noncompliant Code Example
----
struct S {
// ...
};
// ...
struct S; // Noncompliant
----
== Compliant Solution
----
struct S {
// ...
};
----