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

Method isTemplateType

lib/astirmap/DebugInfoMap.cpp:288–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288bool 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
301void DebugInfoMap::update(clang::ASTUnit &Unit) {
302 updateVarDecls(Unit);

Callers

nothing calls this directly

Calls 2

getPointeeTypeMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected