clang 20.0.0git
Public Member Functions | List of all members
clang::format::UnwrappedLineConsumer Class Referenceabstract

Interface for users of the UnwrappedLineParser to receive the parsed lines. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/UnwrappedLineParser.h"

Inheritance diagram for clang::format::UnwrappedLineConsumer:
Inheritance graph
[legend]

Public Member Functions

virtual ~UnwrappedLineConsumer ()
 
virtual void consumeUnwrappedLine (const UnwrappedLine &Line)=0
 
virtual void finishRun ()=0
 

Detailed Description

Interface for users of the UnwrappedLineParser to receive the parsed lines.

Parsing a single snippet of code can lead to multiple runs, where each run is a coherent view of the file.

For example, different runs are generated:

Some tokens will only be visible in a subset of the runs. For each run, UnwrappedLineParser will call consumeUnwrappedLine for each parsed unwrapped line, and then finishRun to indicate that the set of unwrapped lines before is one coherent view of the code snippet to be formatted.

Definition at line 92 of file UnwrappedLineParser.h.

Constructor & Destructor Documentation

◆ ~UnwrappedLineConsumer()

virtual clang::format::UnwrappedLineConsumer::~UnwrappedLineConsumer ( )
inlinevirtual

Definition at line 94 of file UnwrappedLineParser.h.

Member Function Documentation

◆ consumeUnwrappedLine()

virtual void clang::format::UnwrappedLineConsumer::consumeUnwrappedLine ( const UnwrappedLine Line)
pure virtual

◆ finishRun()

virtual void clang::format::UnwrappedLineConsumer::finishRun ( )
pure virtual

The documentation for this class was generated from the following file: