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

Function getArrayLength

lib/utils.h:323–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321 * */
322template<typename T, int size>
323std::size_t getArrayLength(const T (& /*unused*/)[size])
324{
325 return size;
326}
327
328/**
329 * @brief get id string. i.e. for dump files

Callers 15

print_stacktraceFunction · 0.85
printCallstackFunction · 0.85
which_testMethod · 0.85
which_test_methodMethod · 0.85
no_test_methodMethod · 0.85
defaultsMethod · 0.85
quietMethod · 0.85
helpMethod · 0.85
help_longMethod · 0.85
multiple_testcasesMethod · 0.85
invalid_switchesMethod · 0.85

Calls

no outgoing calls

Tested by 15

which_testMethod · 0.68
which_test_methodMethod · 0.68
no_test_methodMethod · 0.68
defaultsMethod · 0.68
quietMethod · 0.68
helpMethod · 0.68
help_longMethod · 0.68
multiple_testcasesMethod · 0.68
invalid_switchesMethod · 0.68
summaryMethod · 0.68
dry_runMethod · 0.68