clang API Documentation

Public Member Functions
clang::format::TokenAnnotator Class Reference

Determines extra information about the tokens comprising an UnwrappedLine. More...

#include <TokenAnnotator.h>

List of all members.

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

Detailed Description

Determines extra information about the tokens comprising an UnwrappedLine.

Definition at line 109 of file TokenAnnotator.h.


Constructor & Destructor Documentation

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

Definition at line 111 of file TokenAnnotator.h.


Member Function Documentation

Adapts the indent levels of comment lines to the indent of the subsequent line.

Definition at line 1251 of file TokenAnnotator.cpp.

References clang::format::AnnotatedLine::First, clang::format::FormatToken::is(), clang::format::FormatToken::isNot(), and clang::format::AnnotatedLine::Level.


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