bool TraverseStmt(clang::Stmt *S) { if (!S) return true; auto const Visible = getPresence(S); auto const Show = shouldShow(S, Visible); Visibilities.push(Visible); Shown.push(Show); Parents.push(S); if (Show) { if (CurrentDepth > MaxDepth) MaxDepth = CurrentDepth; Depths[S] = CurrentDepth; ++CurrentDepth; } auto const Result = DoTraverseStmt(S); if (Show) --CurrentDepth; Visibilities.pop(); Shown.pop(); Parents.pop(); return Result; }
void setPosition(float x, float y) { position.set(x, y); midi.sendControlChange(1, 64 + index, getPresence()); }