clang
3.9.0
|
#include <TokenAnalyzer.h>
Public Member Functions | |
TokenAnalyzer (const Environment &Env, const FormatStyle &Style) | |
tooling::Replacements | process () |
![]() | |
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 Environment & | Env |
AffectedRangeManager | AffectedRangeMgr |
SmallVector< SmallVector < UnwrappedLine, 16 >, 2 > | UnwrappedLines |
encoding::Encoding | Encoding |
Definition at line 80 of file TokenAnalyzer.h.
clang::format::TokenAnalyzer::TokenAnalyzer | ( | const Environment & | Env, |
const FormatStyle & | Style | ||
) |
Definition at line 77 of file TokenAnalyzer.cpp.
References Encoding, clang::format::encoding::Encoding_UTF8, clang::format::getLanguageName(), and clang::format::FormatStyle::Language.
|
protectedpure virtual |
Implemented in clang::format::JavaScriptImportSorter.
Referenced by process().
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 128 of file TokenAnalyzer.cpp.
References UnwrappedLines.
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 133 of file TokenAnalyzer.cpp.
References UnwrappedLines.
tooling::Replacements clang::format::TokenAnalyzer::process | ( | ) |
Definition at line 91 of file TokenAnalyzer.cpp.
References analyze(), E, Encoding, Env, clang::format::Environment::getFileID(), clang::format::Environment::getSourceManager(), I, clang::Result, Style, Tokens, and UnwrappedLines.
Referenced by clang::format::sortJavaScriptImports().
|
protected |
Definition at line 100 of file TokenAnalyzer.h.
Referenced by clang::format::JavaScriptImportSorter::analyze().
|
protected |
Definition at line 102 of file TokenAnalyzer.h.
Referenced by process(), and TokenAnalyzer().
|
protected |
Definition at line 98 of file TokenAnalyzer.h.
Referenced by clang::format::JavaScriptImportSorter::analyze(), and process().
|
protected |
Definition at line 96 of file TokenAnalyzer.h.
Referenced by process().
|
protected |
Definition at line 101 of file TokenAnalyzer.h.
Referenced by consumeUnwrappedLine(), finishRun(), and process().