|
clang
5.0.0
|
Public Member Functions | |
| TokenAnalyzer (const Environment &Env, const FormatStyle &Style) | |
| tooling::Replacements | process () |
Public Member Functions inherited from clang::format::UnwrappedLineConsumer | |
| virtual | ~UnwrappedLineConsumer () |
Protected Member Functions | |
| virtual tooling::Replacements | 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 75 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, clang::format::NamespaceEndCommentsFixer, and clang::format::UsingDeclarationsSorter.
Referenced by process().
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 136 of file TokenAnalyzer.cpp.
References UnwrappedLines.
|
overrideprotectedvirtual |
Implements clang::format::UnwrappedLineConsumer.
Definition at line 141 of file TokenAnalyzer.cpp.
References UnwrappedLines.
| tooling::Replacements clang::format::TokenAnalyzer::process | ( | ) |
Definition at line 91 of file TokenAnalyzer.cpp.
References clang::tooling::Replacements::add(), analyze(), AnnotatedLines, clang::tooling::Replacements::begin(), E, Encoding, clang::tooling::Replacements::end(), Env, clang::format::Environment::getFileID(), clang::format::Environment::getSourceManager(), I, Result, Style, Tokens, clang::threadSafety::sx::toString(), and UnwrappedLines.
Referenced by clang::format::fixNamespaceEndComments(), clang::format::reformat(), clang::format::sortJavaScriptImports(), and clang::format::sortUsingDeclarations().
|
protected |
Definition at line 95 of file TokenAnalyzer.h.
Referenced by clang::format::NamespaceEndCommentsFixer::analyze(), clang::format::UsingDeclarationsSorter::analyze(), and clang::format::JavaScriptImportSorter::analyze().
|
protected |
Definition at line 97 of file TokenAnalyzer.h.
Referenced by process(), and TokenAnalyzer().
|
protected |
Definition at line 93 of file TokenAnalyzer.h.
Referenced by clang::format::NamespaceEndCommentsFixer::analyze(), clang::format::UsingDeclarationsSorter::analyze(), clang::format::JavaScriptImportSorter::analyze(), and process().
|
protected |
Definition at line 91 of file TokenAnalyzer.h.
Referenced by clang::format::NamespaceEndCommentsFixer::analyze(), and process().
|
protected |
Definition at line 96 of file TokenAnalyzer.h.
Referenced by consumeUnwrappedLine(), finishRun(), and process().
1.8.6