clang 20.0.0git
|
Public Member Functions | |
JavaScriptImportSorter (const Environment &Env, const FormatStyle &Style) | |
std::pair< tooling::Replacements, unsigned > | analyze (TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine * > &AnnotatedLines, FormatTokenLexer &Tokens) override |
Public Member Functions inherited from clang::format::TokenAnalyzer | |
TokenAnalyzer (const Environment &Env, const FormatStyle &Style) | |
std::pair< tooling::Replacements, unsigned > | process (bool SkipAnnotation=false) |
Public Member Functions inherited from clang::format::UnwrappedLineConsumer | |
virtual | ~UnwrappedLineConsumer () |
virtual void | consumeUnwrappedLine (const UnwrappedLine &Line)=0 |
virtual void | finishRun ()=0 |
Additional Inherited Members | |
Protected Member Functions inherited from clang::format::TokenAnalyzer | |
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 inherited from clang::format::TokenAnalyzer | |
FormatStyle | Style |
LangOptions | LangOpts |
const Environment & | Env |
AffectedRangeManager | AffectedRangeMgr |
SmallVector< SmallVector< UnwrappedLine, 16 >, 2 > | UnwrappedLines |
encoding::Encoding | Encoding |
Definition at line 132 of file SortJavaScriptImports.cpp.
|
inline |
Definition at line 134 of file SortJavaScriptImports.cpp.
References clang::Token::startToken(), and clang::format::FormatToken::Tok.
|
inlineoverridevirtual |
Implements clang::format::TokenAnalyzer.
Definition at line 142 of file SortJavaScriptImports.cpp.
References clang::format::TokenAnalyzer::AffectedRangeMgr, clang::format::AffectedRangeManager::computeAffectedLines(), E, clang::format::TokenAnalyzer::Env, clang::format::AnnotatedLine::First, clang::CharSourceRange::getCharRange(), clang::format::Environment::getSourceManager(), clang::format::FormatToken::is(), clang::format::isClangFormatOn(), clang::format::FormatToken::NewlinesBefore, clang::Reference, clang::Result, clang::SourceRange::setEnd(), clang::format::FormatToken::TokenText, and toString().