clang
15.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) const |
Adapts the indent levels of comment lines to the indent of the subsequent line. More... | |
void | annotate (AnnotatedLine &Line) const |
void | calculateFormattingInformation (AnnotatedLine &Line) const |
Determines extra information about the tokens comprising an UnwrappedLine
.
Definition at line 156 of file TokenAnnotator.h.
|
inline |
Definition at line 158 of file TokenAnnotator.h.
void clang::format::TokenAnnotator::annotate | ( | AnnotatedLine & | Line | ) | const |
Definition at line 2561 of file TokenAnnotator.cpp.
References Line, clang::format::LT_Invalid, clang::format::LT_ObjCDecl, clang::format::LT_ObjCMethodDecl, clang::format::LT_ObjCProperty, and clang::format::maxNestingDepth().
void clang::format::TokenAnnotator::calculateFormattingInformation | ( | AnnotatedLine & | Line | ) | const |
Definition at line 2728 of file TokenAnnotator.cpp.
References Line.
void clang::format::TokenAnnotator::setCommentLineLevels | ( | SmallVectorImpl< AnnotatedLine * > & | Lines | ) | const |
Adapts the indent levels of comment lines to the indent of the subsequent line.
Definition at line 2525 of file TokenAnnotator.cpp.
References clang::format::AnnotatedLine::First, clang::format::AnnotatedLine::Level, Line, clang::format::LT_ImportStatement, clang::format::LT_PreprocessorDirective, clang::format::FormatToken::NewlinesBefore, clang::format::FormatToken::OriginalColumn, clang::format::FormatStyle::PPDIS_BeforeHash, and clang::format::AnnotatedLine::Type.