| 286 | } |
| 287 | |
| 288 | bool DebugInfoMap::isTemplateType(const ASTDefNode &Node) const { |
| 289 | auto *TypePtr = Node.getAssignee().getType().getTypePtrOrNull(); |
| 290 | if (!TypePtr) |
| 291 | return false; |
| 292 | |
| 293 | auto *PointeeTypePtr = TypePtr->getPointeeType().getTypePtrOrNull(); |
| 294 | while (PointeeTypePtr != nullptr && TypePtr != PointeeTypePtr) { |
| 295 | TypePtr = PointeeTypePtr; |
| 296 | PointeeTypePtr = TypePtr->getPointeeType().getTypePtrOrNull(); |
| 297 | } |
| 298 | return TypePtr->isTemplateTypeParmType(); |
| 299 | } |
| 300 | |
| 301 | void DebugInfoMap::update(clang::ASTUnit &Unit) { |
| 302 | updateVarDecls(Unit); |
nothing calls this directly
no test coverage detected