clang
6.0.0
|
#include "/work/www-prereleases/6.0.0/rc3/llvm.src/tools/clang/lib/Format/TokenAnalyzer.h"
Public Member Functions | |
TokenAnalyzer (const Environment &Env, const FormatStyle &Style) | |
std::pair< tooling::Replacements, unsigned > | process () |
![]() | |
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 Environment & | Env |
AffectedRangeManager | AffectedRangeMgr |
SmallVector< SmallVector< UnwrappedLine, 16 >, 2 > | UnwrappedLines |
encoding::Encoding | Encoding |
Definition at line 106 of file TokenAnalyzer.h.
clang::format::TokenAnalyzer::TokenAnalyzer | ( | const Environment & | Env, |
const FormatStyle & | Style | ||
) |
Definition at line 81 of file TokenAnalyzer.cpp.
References Encoding, clang::format::encoding::Encoding_UTF8, clang::format::getLanguageName(), and clang::format::FormatStyle::Language.
|
protectedpure virtual |
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 144 of file TokenAnalyzer.cpp.
References UnwrappedLines.
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 149 of file TokenAnalyzer.cpp.
References UnwrappedLines.
std::pair< tooling::Replacements, unsigned > clang::format::TokenAnalyzer::process | ( | ) |
Definition at line 95 of file TokenAnalyzer.cpp.
|
protected |
Definition at line 126 of file TokenAnalyzer.h.
|
protected |
Definition at line 128 of file TokenAnalyzer.h.
Referenced by TokenAnalyzer().
|
protected |
Definition at line 124 of file TokenAnalyzer.h.
|
protected |
Definition at line 122 of file TokenAnalyzer.h.
|
protected |
Definition at line 127 of file TokenAnalyzer.h.
Referenced by consumeUnwrappedLine(), and finishRun().