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

Method verifyLocation

tests/astirmap/TestDebugInfoMap.cpp:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59 }
60
61 bool verifyLocation(ASTDefNode &ADN, unsigned BaseLine, unsigned BaseColumn,
62 unsigned LHSLine, unsigned LHSColumn, unsigned LHSLength,
63 unsigned RHSLine, unsigned RHSColumn,
64 unsigned RHSLength) const {
65 if (!verifyLocation(ADN, BaseLine, BaseColumn, LHSLine, LHSColumn,
66 LHSLength))
67 return false;
68
69 auto *Assigned = ADN.getAssigned();
70 if (!Assigned)
71 return false;
72
73 const auto &Index = Assigned->getIndex();
74 if (Index.getLine() != RHSLine)
75 return false;
76 if (Index.getColumn() != RHSColumn)
77 return false;
78 if (Assigned->getLength() != RHSLength)
79 return false;
80
81 return true;
82 }
83
84 bool verifyLocation(ASTDefNode &ADN, unsigned BaseLine, unsigned BaseColumn,
85 unsigned LHSLine, unsigned LHSColumn,

Callers

nothing calls this directly

Calls 5

getAssignedMethod · 0.80
getColumnMethod · 0.80
getLocIndexMethod · 0.80
getLineMethod · 0.45
getLengthMethod · 0.45

Tested by

no test coverage detected