clang  7.0.0svn
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
clang::format::TokenAnalyzer Class Referenceabstract

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/Format/TokenAnalyzer.h"

Inheritance diagram for clang::format::TokenAnalyzer:
Inheritance graph
Collaboration diagram for clang::format::TokenAnalyzer:
Collaboration graph

Public Member Functions

 TokenAnalyzer (const Environment &Env, const FormatStyle &Style)
std::pair< tooling::Replacements, unsigned > process ()
- Public Member Functions inherited from clang::format::UnwrappedLineConsumer
virtual ~UnwrappedLineConsumer ()

Protected Member Functions

virtual std::pair< tooling::Replacements, unsigned > analyze (TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine *> &AnnotatedLines, FormatTokenLexer &Tokens)=0
void consumeUnwrappedLine (const UnwrappedLine &TheLine) override
void finishRun () override

Protected Attributes

FormatStyle Style
const EnvironmentEnv
AffectedRangeManager AffectedRangeMgr
SmallVector< SmallVector< UnwrappedLine, 16 >, 2 > UnwrappedLines
encoding::Encoding Encoding

Detailed Description

Definition at line 106 of file TokenAnalyzer.h.

Constructor & Destructor Documentation

◆ TokenAnalyzer()

clang::format::TokenAnalyzer::TokenAnalyzer ( const Environment Env,
const FormatStyle Style 

Member Function Documentation

◆ analyze()

virtual std::pair<tooling::Replacements, unsigned> clang::format::TokenAnalyzer::analyze ( TokenAnnotator Annotator,
SmallVectorImpl< AnnotatedLine *> &  AnnotatedLines,
FormatTokenLexer Tokens 
protectedpure virtual

◆ consumeUnwrappedLine()

void clang::format::TokenAnalyzer::consumeUnwrappedLine ( const UnwrappedLine TheLine)

Implements clang::format::UnwrappedLineConsumer.

Definition at line 144 of file TokenAnalyzer.cpp.

References UnwrappedLines.

◆ finishRun()

void clang::format::TokenAnalyzer::finishRun ( )

Implements clang::format::UnwrappedLineConsumer.

Definition at line 149 of file TokenAnalyzer.cpp.

References UnwrappedLines.

◆ process()

std::pair< tooling::Replacements, unsigned > clang::format::TokenAnalyzer::process ( )

Definition at line 95 of file TokenAnalyzer.cpp.

Member Data Documentation

◆ AffectedRangeMgr

AffectedRangeManager clang::format::TokenAnalyzer::AffectedRangeMgr

Definition at line 126 of file TokenAnalyzer.h.

◆ Encoding

encoding::Encoding clang::format::TokenAnalyzer::Encoding

Definition at line 128 of file TokenAnalyzer.h.

Referenced by TokenAnalyzer().

◆ Env

const Environment& clang::format::TokenAnalyzer::Env

Definition at line 124 of file TokenAnalyzer.h.

◆ Style

FormatStyle clang::format::TokenAnalyzer::Style

Definition at line 122 of file TokenAnalyzer.h.

◆ UnwrappedLines

SmallVector<SmallVector<UnwrappedLine, 16>, 2> clang::format::TokenAnalyzer::UnwrappedLines

Definition at line 127 of file TokenAnalyzer.h.

Referenced by consumeUnwrappedLine(), and finishRun().

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