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

Class CWE

lib/errortypes.h:125–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123CPPCHECKLIB Severity severityFromString(const std::string &severity);
124
125struct CWE {
126 explicit CWE(unsigned short cweId) : id(cweId) {}
127 unsigned short id;
128};
129
130using ErrorPathItem = std::pair<const Token *, std::string>;
131using ErrorPath = std::list<ErrorPathItem>;

Callers 15

memleakErrorMethod · 0.70
resourceLeakErrorMethod · 0.70
deallocuseErrorMethod · 0.70
mismatchAllocDeallocMethod · 0.70
reportErrorFunction · 0.70
invalidFreeErrorMethod · 0.70
overrideErrorMethod · 0.70
uselessOverrideErrorMethod · 0.70

Calls

no outgoing calls

Tested by 1

createErrorMessageMethod · 0.40