clang
12.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/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 80 of file TokenAnalyzer.h.
clang::format::TokenAnalyzer::TokenAnalyzer | ( | const Environment & | Env, |
const FormatStyle & | Style | ||
) |
Definition at line 51 of file TokenAnalyzer.cpp.
References Encoding, clang::format::encoding::Encoding_UTF8, clang::format::getLanguageName(), and Style.
|
protectedpure virtual |
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 119 of file TokenAnalyzer.cpp.
References UnwrappedLines.
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 124 of file TokenAnalyzer.cpp.
References UnwrappedLines.
std::pair< tooling::Replacements, unsigned > clang::format::TokenAnalyzer::process | ( | ) |
Definition at line 65 of file TokenAnalyzer.cpp.
Referenced by clang::format::fixNamespaceEndComments(), clang::format::sortJavaScriptImports(), and clang::format::sortUsingDeclarations().
|
protected |
Definition at line 100 of file TokenAnalyzer.h.
|
protected |
Definition at line 102 of file TokenAnalyzer.h.
Referenced by TokenAnalyzer().
|
protected |
Definition at line 98 of file TokenAnalyzer.h.
|
protected |
Definition at line 96 of file TokenAnalyzer.h.
Referenced by TokenAnalyzer().
|
protected |
Definition at line 101 of file TokenAnalyzer.h.
Referenced by consumeUnwrappedLine(), and finishRun().