clang
10.0.0svn
|
Determines extra information about the tokens comprising an UnwrappedLine
.
More...
#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/Format/TokenAnnotator.h"
Public Member Functions | |
TokenAnnotator (const FormatStyle &Style, const AdditionalKeywords &Keywords) | |
void | setCommentLineLevels (SmallVectorImpl< AnnotatedLine *> &Lines) |
Adapts the indent levels of comment lines to the indent of the subsequent line. More... | |
void | annotate (AnnotatedLine &Line) |
void | calculateFormattingInformation (AnnotatedLine &Line) |
Determines extra information about the tokens comprising an UnwrappedLine
.
Definition at line 157 of file TokenAnnotator.h.
|
inline |
Definition at line 159 of file TokenAnnotator.h.
void clang::format::TokenAnnotator::annotate | ( | AnnotatedLine & | Line | ) |
Definition at line 2045 of file TokenAnnotator.cpp.
References clang::format::AnnotatedLine::Children, and clang::format::Style.
void clang::format::TokenAnnotator::calculateFormattingInformation | ( | AnnotatedLine & | Line | ) |
Definition at line 2182 of file TokenAnnotator.cpp.
References clang::format::AnnotatedLine::Children, clang::format::FormatToken::ColumnWidth, clang::format::AnnotatedLine::First, clang::format::AnnotatedLine::FirstStartColumn, clang::format::FormatToken::IsMultiline, clang::format::Style, and clang::format::FormatToken::TotalLength.
void clang::format::TokenAnnotator::setCommentLineLevels | ( | SmallVectorImpl< AnnotatedLine *> & | Lines | ) |
Adapts the indent levels of comment lines to the indent of the subsequent line.
Definition at line 2001 of file TokenAnnotator.cpp.
References clang::format::AnnotatedLine::First, clang::format::FormatToken::is(), clang::format::FormatToken::isNot(), clang::format::AnnotatedLine::Level, clang::format::LT_ImportStatement, clang::format::LT_PreprocessorDirective, clang::format::FormatToken::NewlinesBefore, clang::format::FormatToken::Next, clang::format::FormatToken::OriginalColumn, clang::format::Style, clang::format::Tok, and clang::format::AnnotatedLine::Type.