Home
last modified time | relevance | path

Searched refs:UnwrappedLine (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/Format/
DUnwrappedLineParser.h36 struct UnwrappedLine { struct
37 UnwrappedLine();
55 virtual void consumeUnwrappedLine(const UnwrappedLine &Line) = 0; argument
134 std::unique_ptr<UnwrappedLine> Line;
145 SmallVector<UnwrappedLine, 8> Lines;
150 SmallVector<UnwrappedLine, 4> PreprocessorDirectives;
156 SmallVectorImpl<UnwrappedLine> *CurrentLines;
213 SmallVector<UnwrappedLine, 0> Children;
216 inline UnwrappedLine::UnwrappedLine() in UnwrappedLine() function
DTokenAnalyzer.h92 void consumeUnwrappedLine(const UnwrappedLine &TheLine) override;
101 SmallVector<SmallVector<UnwrappedLine, 16>, 2> UnwrappedLines;
DTokenAnalyzer.cpp128 void TokenAnalyzer::consumeUnwrappedLine(const UnwrappedLine &TheLine) { in consumeUnwrappedLine()
134 UnwrappedLines.push_back(SmallVector<UnwrappedLine, 16>()); in finishRun()
DUnwrappedLineParser.cpp39 ScopedDeclarationState(UnwrappedLine &Line, std::vector<bool> &Stack, in ScopedDeclarationState()
54 UnwrappedLine &Line;
60 ScopedMacroState(UnwrappedLine &Line, FormatTokenSource *&TokenSource, in ScopedMacroState()
108 UnwrappedLine &Line;
129 Parser.Line = llvm::make_unique<UnwrappedLine>(); in ScopedLineState()
148 std::unique_ptr<UnwrappedLine> PreBlockLine;
149 SmallVectorImpl<UnwrappedLine> *OriginalLines;
204 : Line(new UnwrappedLine), MustBreakBeforeNextToken(false), in UnwrappedLineParser()
210 Line.reset(new UnwrappedLine); in reset()
234 for (SmallVectorImpl<UnwrappedLine>::iterator I = Lines.begin(), in parse()
[all …]
DTokenAnnotator.h41 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine()
/external/yapf/yapftests/
Dunwrapped_line_test.py33 uwl = unwrapped_line.UnwrappedLine(20, toks)
40 uwl = unwrapped_line.UnwrappedLine(20, toks)
48 uwl = unwrapped_line.UnwrappedLine(2, toks)
52 uwl = unwrapped_line.UnwrappedLine(0)
58 uwl = unwrapped_line.UnwrappedLine(0)
Dformat_decision_state_test.py39 uwline = unwrapped_line.UnwrappedLine(0, _FilterLine(uwlines[0]))
93 uwline = unwrapped_line.UnwrappedLine(0, _FilterLine(uwlines[0]))
/external/yapf/yapf/yapflib/
Dunwrapped_line.py29 class UnwrappedLine(object): class
94 uwline = UnwrappedLine(self.depth)
98 uwline = UnwrappedLine(self.depth)
Dpytree_unwrapper.py85 self._cur_unwrapped_line = unwrapped_line.UnwrappedLine(0)
112 self._cur_unwrapped_line = unwrapped_line.UnwrappedLine(self._cur_depth)
/external/yapf/
DREADME.rst656 The main data structure in YAPF is the ``UnwrappedLine`` object. It holds a list
660 formatter works on one ``UnwrappedLine`` object at a time.
662 An ``UnwrappedLine`` typically won't affect the formatting of lines before or
664 ``UnwrappedLine``\s into one line. For instance, an if-then statement with a