Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The LDRA tool suite V 7.6.0 can detect violations of this recommendation.

Compass/ROSE could can detect violations of this recommendation...typedefs are well represented in ROSE's AST. To detect violations, we first have to rigorously define what constitutes a 'too complicated type'. Most could concede that a pointer to a simple type is not too complicated, but a function type is. The algorithm we will employ to flag declarations that warrant a typedef is as follows:

...

.

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

...