Lines Matching defs:Parent
33 FormatToken *Parent = nullptr) {
36 Call(N.Tok, Parent, First, Line.Level);
55 forEachToken(Line, [&](FormatToken *Token, FormatToken *Parent, bool First,
56 unsigned Level) { add(Token, Parent, First, Level); });
77 llvm::dbgs() << "MCR: Token: " << Token->TokenText << ", Parent: "
139 FormatToken *Parent = getParentInResult(ExpandedParent);
141 << (Parent ? Parent->TokenText : "<null>") << "\n");
163 Parent == ActiveReconstructedLines.back()->Tokens.back()->Tok)) {
167 (Parent != ActiveReconstructedLines.back()->Tokens.back()->Tok &&
178 } else if (parentLine().Tokens.back()->Tok != Parent) {
180 // the child of \c Parent in the stack.
181 while (Parent != parentLine().Tokens.back()->Tok &&
191 // For a given \p Parent in the incoming expanded token stream, find the
193 FormatToken *MacroCallReconstructor::getParentInResult(FormatToken *Parent) {
194 FormatToken *Mapped = SpelledParentToReconstructedParent.lookup(Parent);
196 return Parent;
197 for (; Mapped; Mapped = SpelledParentToReconstructedParent.lookup(Parent))
198 Parent = Mapped;
202 Parent->MacroParent = true;
203 return Parent;