Home | History | Annotate | Download | only in Format

Lines Matching refs:Parser

21 #define DEBUG_TYPE "format-parser"
121 ScopedLineState(UnwrappedLineParser &Parser,
123 : Parser(Parser), OriginalLines(Parser.CurrentLines) {
125 Parser.CurrentLines = &Parser.PreprocessorDirectives;
126 else if (!Parser.Line->Tokens.empty())
127 Parser.CurrentLines = &Parser.Line->Tokens.back().Children;
128 PreBlockLine = std::move(Parser.Line);
129 Parser.Line = llvm::make_unique<UnwrappedLine>();
130 Parser.Line->Level = PreBlockLine->Level;
131 Parser.Line->InPPDirective = PreBlockLine->InPPDirective;
135 if (!Parser.Line->Tokens.empty()) {
136 Parser.addUnwrappedLine();
138 assert(Parser.Line->Tokens.empty());
139 Parser.Line = std::move(PreBlockLine);
140 if (Parser.CurrentLines == &Parser.PreprocessorDirectives)
141 Parser.MustBreakBeforeNextToken = true;
142 Parser.CurrentLines = OriginalLines;
146 UnwrappedLineParser &Parser;
154 CompoundStatementIndenter(UnwrappedLineParser *Parser,
158 Parser->addUnwrappedLine();
1269 // FIXME: Once we have an expression parser in the UnwrappedLineParser,