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

Method getMainLocIndex

gui/erroritem.h:83–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 QString tool() const;
82
83 int getMainLocIndex() const {
84 return isClangResult() ? 0 : errorPath.size() - 1;
85 }
86
87 QString getFile() const {
88 return errorPath.isEmpty() ? QString() : errorPath[getMainLocIndex()].file;

Callers 2

addErrorItemMethod · 0.80
ensureFileItemMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected