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

#include <TokenAnalyzer.h>

Inheritance diagram for clang::format::TokenAnalyzer:
[legend]
Collaboration diagram for clang::format::TokenAnalyzer:
[legend]

Public Member Functions

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

Protected Member Functions

virtual tooling::Replacements analyze (TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine * > &AnnotatedLines, FormatTokenLexer &Tokens, tooling::Replacements &Result)=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 80 of file TokenAnalyzer.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implemented in clang::format::JavaScriptImportSorter.

Referenced by process().

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

Implements clang::format::UnwrappedLineConsumer.

Definition at line 128 of file TokenAnalyzer.cpp.

References UnwrappedLines.

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

Implements clang::format::UnwrappedLineConsumer.

Definition at line 133 of file TokenAnalyzer.cpp.

References UnwrappedLines.

tooling::Replacements clang::format::TokenAnalyzer::process ( )

Member Data Documentation

AffectedRangeManager clang::format::TokenAnalyzer::AffectedRangeMgr
protected

Definition at line 100 of file TokenAnalyzer.h.

Referenced by clang::format::JavaScriptImportSorter::analyze().

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

Definition at line 102 of file TokenAnalyzer.h.

Referenced by process(), and TokenAnalyzer().

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

Definition at line 98 of file TokenAnalyzer.h.

Referenced by clang::format::JavaScriptImportSorter::analyze(), and process().

FormatStyle clang::format::TokenAnalyzer::Style
protected

Definition at line 96 of file TokenAnalyzer.h.

Referenced by process().

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

Definition at line 101 of file TokenAnalyzer.h.

Referenced by consumeUnwrappedLine(), finishRun(), and process().


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