MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / Usage

Class Usage

lib/checkclass.h:243–254  ·  view source on GitHub ↗

constructors helper function @brief Information about a member variable. Used when checking for uninitialized variables */

Source from the content-addressed store, hash-verified

241 // constructors helper function
242 /** @brief Information about a member variable. Used when checking for uninitialized variables */
243 struct Usage {
244 explicit Usage(const Variable *var) : var(var) {}
245
246 /** Variable that this usage is for */
247 const Variable *var;
248
249 /** @brief has this variable been assigned? */
250 bool assign{};
251
252 /** @brief has this variable been initialized? */
253 bool init{};
254 };
255
256 static void handleUnionMembers(std::vector<Usage>& usageList);
257

Callers 1

createUsageListMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected