clang  6.0.0svn
Public Member Functions | List of all members
clang::format::TokenAnnotator Class Reference

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)
 

Detailed Description

Determines extra information about the tokens comprising an UnwrappedLine.

Definition at line 138 of file TokenAnnotator.h.

Constructor & Destructor Documentation

◆ TokenAnnotator()

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

Definition at line 140 of file TokenAnnotator.h.

Member Function Documentation

◆ annotate()

void clang::format::TokenAnnotator::annotate ( AnnotatedLine Line)

Definition at line 1749 of file TokenAnnotator.cpp.

◆ calculateFormattingInformation()

void clang::format::TokenAnnotator::calculateFormattingInformation ( AnnotatedLine Line)

Definition at line 1886 of file TokenAnnotator.cpp.

◆ setCommentLineLevels()

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 1711 of file TokenAnnotator.cpp.


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