clang
19.0.0git
|
#include "/home/runner/work/llvm/llvm/repo/clang/lib/Format/TokenAnalyzer.h"
Public Member Functions | |
TokenAnalyzer (const Environment &Env, const FormatStyle &Style) | |
std::pair< tooling::Replacements, unsigned > | process (bool SkipAnnotation=false) |
![]() | |
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 |
LangOptions | LangOpts |
const Environment & | Env |
AffectedRangeManager | AffectedRangeMgr |
SmallVector< SmallVector< UnwrappedLine, 16 >, 2 > | UnwrappedLines |
encoding::Encoding | Encoding |
Definition at line 77 of file TokenAnalyzer.h.
clang::format::TokenAnalyzer::TokenAnalyzer | ( | const Environment & | Env, |
const FormatStyle & | Style | ||
) |
Definition at line 86 of file TokenAnalyzer.cpp.
|
protectedpure virtual |
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 154 of file TokenAnalyzer.cpp.
References UnwrappedLines.
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 159 of file TokenAnalyzer.cpp.
References UnwrappedLines.
std::pair< tooling::Replacements, unsigned > clang::format::TokenAnalyzer::process | ( | bool | SkipAnnotation = false | ) |
Definition at line 101 of file TokenAnalyzer.cpp.
|
protected |
Definition at line 99 of file TokenAnalyzer.h.
|
protected |
Definition at line 101 of file TokenAnalyzer.h.
|
protected |
Definition at line 97 of file TokenAnalyzer.h.
|
protected |
Definition at line 95 of file TokenAnalyzer.h.
|
protected |
Definition at line 94 of file TokenAnalyzer.h.
|
protected |
Definition at line 100 of file TokenAnalyzer.h.
Referenced by consumeUnwrappedLine(), and finishRun().