Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Format/
H A DUnwrappedLineParser.h38 struct UnwrappedLine { struct
39 UnwrappedLine();
70 virtual void consumeUnwrappedLine(const UnwrappedLine &Line) = 0; argument
101 bool mightFitOnOneLine(UnwrappedLine &Line,
228 std::unique_ptr<UnwrappedLine> Line;
239 SmallVector<UnwrappedLine, 8> Lines;
244 SmallVector<UnwrappedLine, 4> PreprocessorDirectives;
250 SmallVectorImpl<UnwrappedLine> *CurrentLines;
341 SmallVector<UnwrappedLine, 0> Children;
344 inline UnwrappedLine::UnwrappedLine() in UnwrappedLine() function
H A DMacros.h55 struct UnwrappedLine;
179 const llvm::DenseMap<FormatToken *, std::unique_ptr<UnwrappedLine>>
186 void addLine(const UnwrappedLine &Line);
224 UnwrappedLine takeResult() &&;
240 UnwrappedLine createUnwrappedLine(const ReconstructedLine &Line, int Level);
374 const llvm::DenseMap<FormatToken *, std::unique_ptr<UnwrappedLine>>
H A DMacroCallReconstructor.cpp32 void forEachToken(const UnwrappedLine &Line, const T &Call, in forEachToken()
46 const llvm::DenseMap<FormatToken *, std::unique_ptr<UnwrappedLine>> in MacroCallReconstructor()
53 void MacroCallReconstructor::addLine(const UnwrappedLine &Line) { in addLine()
62 UnwrappedLine MacroCallReconstructor::takeResult() && { in takeResult()
65 UnwrappedLine Final = in takeResult()
508 UnwrappedLine
511 UnwrappedLine Result; in createUnwrappedLine()
H A DTokenAnalyzer.h100 void consumeUnwrappedLine(const UnwrappedLine &TheLine) override;
109 SmallVector<SmallVector<UnwrappedLine, 16>, 2> UnwrappedLines;
H A DTokenAnalyzer.cpp122 for (const UnwrappedLine &Line : Lines) { in process()
152 void TokenAnalyzer::consumeUnwrappedLine(const UnwrappedLine &TheLine) { in consumeUnwrappedLine()
158 UnwrappedLines.push_back(SmallVector<UnwrappedLine, 16>()); in finishRun()
H A DUnwrappedLineParser.cpp84 UnwrappedLine &Line;
174 UnwrappedLine &Line;
196 Parser.Line = std::make_unique<UnwrappedLine>(); in ScopedLineState()
214 std::unique_ptr<UnwrappedLine> PreBlockLine;
215 SmallVectorImpl<UnwrappedLine> *OriginalLines;
336 Line.reset(new UnwrappedLine); in reset()
372 for (const UnwrappedLine &Line : Lines) in parse()
874 ? (UnwrappedLine::kInvalidIndex) in parseBlock()
975 static bool isGoogScope(const UnwrappedLine &Line) { in isGoogScope()
993 static bool isIIFE(const UnwrappedLine &Line, in isIIFE()
[all …]
H A DAffectedRangeManager.cpp144 Line->MatchingOpeningBlockLineIndex != UnwrappedLine::kInvalidIndex && in nonPPLineAffected()
H A DTokenAnnotator.h38 AnnotatedLine(const UnwrappedLine &Line) in AnnotatedLine()
H A DNamespaceEndCommentsFixer.cpp253 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getNamespaceToken()
H A DUnwrappedLineFormatter.cpp179 if (StartLineIndex == UnwrappedLine::kInvalidIndex) in getMatchingNamespaceToken()
/llvm-project-15.0.7/clang/unittests/Format/
H A DMacroCallReconstructorTest.cpp19 llvm::DenseMap<FormatToken *, std::unique_ptr<UnwrappedLine>>;
37 auto UnexpandedLine = std::make_unique<UnwrappedLine>(); in expand()
88 Chunk(llvm::ArrayRef<UnwrappedLine> Children) in Chunk()
91 llvm::SmallVector<UnwrappedLine, 0> Children;
123 Result[KV.first] = std::make_unique<UnwrappedLine>(*KV.second); in mergeUnexpanded()
142 UnwrappedLine line(llvm::ArrayRef<FormatToken *> Tokens) { in line()
143 UnwrappedLine Result; in line()
152 UnwrappedLine line(llvm::ArrayRef<Chunk> Chunks) { in line()
153 UnwrappedLine Result; in line()
168 Chunk children(llvm::ArrayRef<UnwrappedLine> Children) { in children()
[all …]
H A DTestLexer.h94 void consumeUnwrappedLine(const UnwrappedLine &TheLine) override { in consumeUnwrappedLine()
115 SmallVector<UnwrappedLine, 16> UnwrappedLines;