| 29 | } |
| 30 | |
| 31 | std::tuple<std::string, unsigned, unsigned> |
| 32 | InvalidLocationFilter::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 | |
| 44 | bool InvalidLocationFilter::isHeaderFile(const std::string &Name) const { |
| 45 | try { |
nothing calls this directly
no test coverage detected