MCPcopy Create free account
hub / github.com/Samsung/UTopia / getLoc

Method getLoc

lib/inputfilter/InvalidLocationFilter.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31std::tuple<std::string, unsigned, unsigned>
32InvalidLocationFilter::getLoc(const ASTDefNode &ADN) const {
33 if (const auto *AssignedNode = ADN.getAssigned()) {
34 const auto &Index = AssignedNode->getIndex();
35 return std::make_tuple(Index.getPath(), AssignedNode->getOffset(),
36 AssignedNode->getLength());
37 }
38 const auto &AssigneeNode = ADN.getAssignee();
39 const auto &Index = AssigneeNode.getIndex();
40 return std::make_tuple(
41 Index.getPath(), AssigneeNode.getOffset() + AssigneeNode.getLength(), 0);
42}
43
44bool InvalidLocationFilter::isHeaderFile(const std::string &Name) const {
45 try {

Callers

nothing calls this directly

Calls 4

getAssignedMethod · 0.80
getPathMethod · 0.80
getOffsetMethod · 0.45
getLengthMethod · 0.45

Tested by

no test coverage detected