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

Method isOffsetOfExpr

lib/inputfilter/CompileConstantFilter.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool CompileConstantFilter::isOffsetOfExpr(const ASTDefNode &Node) const {
35 const auto *Assigned = Node.getAssigned();
36 if (!Assigned)
37 return false;
38
39 const auto *E = dyn_cast_or_null<Expr>(Assigned->getNode().get<Expr>());
40 if (!E)
41 return false;
42
43 return dyn_cast_or_null<OffsetOfExpr>(E->IgnoreCasts());
44}
45
46} // namespace ftg

Callers

nothing calls this directly

Calls 1

getAssignedMethod · 0.80

Tested by

no test coverage detected