clang
12.0.0git
|
Determines extra information about the tokens comprising an UnwrappedLine
.
More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/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.
References clang::format::Style.
void clang::format::TokenAnnotator::annotate | ( | AnnotatedLine & | Line | ) |
Definition at line 2319 of file TokenAnnotator.cpp.
References clang::if(), Line, clang::format::LT_Invalid, clang::format::LT_ObjCDecl, clang::format::LT_ObjCMethodDecl, clang::format::LT_ObjCProperty, clang::format::maxNestingDepth(), and clang::format::Style.
void clang::format::TokenAnnotator::calculateFormattingInformation | ( | AnnotatedLine & | Line | ) |
Definition at line 2473 of file TokenAnnotator.cpp.
References Line, and clang::format::Style.
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 2275 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.