clang 22.0.0git
clang::format::TokenAnnotator Class Reference

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.
void annotate (AnnotatedLine &Line)
void calculateFormattingInformation (AnnotatedLine &Line) const

Detailed Description

Determines extra information about the tokens comprising an UnwrappedLine.

Definition at line 223 of file TokenAnnotator.h.

Constructor & Destructor Documentation

◆ TokenAnnotator()

clang::format::TokenAnnotator::TokenAnnotator ( const FormatStyle & Style,
const AdditionalKeywords & Keywords )
inline

Definition at line 225 of file TokenAnnotator.h.

References clang::format::getFormattingLangOpts(), and clang::isCpp().

Member Function Documentation

◆ annotate()

◆ calculateFormattingInformation()

◆ setCommentLineLevels()


The documentation for this class was generated from the following files: