clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc4/docsbuild/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 85 of file TokenAnalyzer.h.
clang::format::TokenAnalyzer::TokenAnalyzer | ( | const Environment & | Env, |
const FormatStyle & | Style | ||
) |
Definition at line 52 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 115 of file TokenAnalyzer.cpp.
References UnwrappedLines.
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 120 of file TokenAnalyzer.cpp.
References UnwrappedLines.
std::pair< tooling::Replacements, unsigned > clang::format::TokenAnalyzer::process | ( | ) |
Definition at line 66 of file TokenAnalyzer.cpp.
Referenced by clang::format::fixNamespaceEndComments(), clang::format::sortJavaScriptImports(), and clang::format::sortUsingDeclarations().
|
protected |
Definition at line 105 of file TokenAnalyzer.h.
|
protected |
Definition at line 107 of file TokenAnalyzer.h.
Referenced by TokenAnalyzer().
|
protected |
Definition at line 103 of file TokenAnalyzer.h.
|
protected |
Definition at line 101 of file TokenAnalyzer.h.
|
protected |
Definition at line 106 of file TokenAnalyzer.h.
Referenced by consumeUnwrappedLine(), and finishRun().