Query module AV Rule 97

name
No raw arrays in interfaces
description
Arrays should not be used in interfaces. Arrays degenerate to pointers when passed as parameters. This array decay problem has long been known to be a source of errors. Consider using std::vector or encapsulating the array in an Array class.
kind
problem
problem.severity
recommendation
precision
high
id
cpp/array-in-interface
tags
reliability readability language-features external/jsf

Imports

cpp

Provides classes and predicates for working with C/C++/ObjC/ObjC++ code.

Predicates