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

#include "/opt/doxygen-docs/src/llvm/tools/clang/lib/Format/BreakableToken.h"

Inheritance diagram for clang::format::BreakableLineCommentSection:
Inheritance graph
[legend]
Collaboration diagram for clang::format::BreakableLineCommentSection:
Collaboration graph
[legend]

Public Member Functions

 BreakableLineCommentSection (const FormatToken &Token, unsigned StartColumn, unsigned OriginalStartColumn, bool FirstInLine, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style)
 
unsigned getRangeLength (unsigned LineIndex, unsigned Offset, StringRef::size_type Length, unsigned StartColumn) const override
 
unsigned getContentStartColumn (unsigned LineIndex, bool Break) const override
 
void insertBreak (unsigned LineIndex, unsigned TailOffset, Split Split, WhitespaceManager &Whitespaces) const override
 
Split getReflowSplit (unsigned LineIndex, llvm::Regex &CommentPragmasRegex) const override
 
void reflow (unsigned LineIndex, WhitespaceManager &Whitespaces) const override
 
void adaptStartOfLine (unsigned LineIndex, WhitespaceManager &Whitespaces) const override
 
void updateNextToken (LineState &State) const override
 
bool mayReflow (unsigned LineIndex, llvm::Regex &CommentPragmasRegex) const override
 
- Public Member Functions inherited from clang::format::BreakableComment
bool supportsReflow () const override
 
unsigned getLineCount () const override
 
Split getSplit (unsigned LineIndex, unsigned TailOffset, unsigned ColumnLimit, unsigned ReflowColumn, llvm::Regex &CommentPragmasRegex) const override
 
void compressWhitespace (unsigned LineIndex, unsigned TailOffset, Split Split, WhitespaceManager &Whitespaces) const override
 

Additional Inherited Members

- Protected Member Functions inherited from clang::format::BreakableComment
 BreakableComment (const FormatToken &Token, unsigned StartColumn, bool InPPDirective, encoding::Encoding Encoding, const FormatStyle &Style)
 Creates a breakable token for a comment. More...
 
const FormatTokentokenAt (unsigned LineIndex) const
 
- Protected Attributes inherited from clang::format::BreakableComment
SmallVector< StringRef, 16 > Lines
 
SmallVector< StringRef, 16 > Content
 
SmallVector< FormatToken *, 16 > Tokens
 
SmallVector< int, 16 > ContentColumn
 
unsigned StartColumn
 
StringRef ReflowPrefix = " "
 

Detailed Description

Definition at line 414 of file BreakableToken.h.

Constructor & Destructor Documentation

◆ BreakableLineCommentSection()

clang::format::BreakableLineCommentSection::BreakableLineCommentSection ( const FormatToken Token,
unsigned  StartColumn,
unsigned  OriginalStartColumn,
bool  FirstInLine,
bool  InPPDirective,
encoding::Encoding  Encoding,
const FormatStyle Style 
)

Member Function Documentation

◆ adaptStartOfLine()

void clang::format::BreakableLineCommentSection::adaptStartOfLine ( unsigned  LineIndex,
WhitespaceManager Whitespaces 
) const
override

Definition at line 809 of file BreakableToken.cpp.

◆ getContentStartColumn()

unsigned clang::format::BreakableLineCommentSection::getContentStartColumn ( unsigned  LineIndex,
bool  Break 
) const
override

◆ getRangeLength()

unsigned clang::format::BreakableLineCommentSection::getRangeLength ( unsigned  LineIndex,
unsigned  Offset,
StringRef::size_type  Length,
unsigned  StartColumn 
) const
override

Definition at line 739 of file BreakableToken.cpp.

◆ getReflowSplit()

BreakableComment::Split clang::format::BreakableLineCommentSection::getReflowSplit ( unsigned  LineIndex,
llvm::Regex &  CommentPragmasRegex 
) const
override

Definition at line 775 of file BreakableToken.cpp.

References clang::format::BreakableComment::Content, and mayReflow().

◆ insertBreak()

void clang::format::BreakableLineCommentSection::insertBreak ( unsigned  LineIndex,
unsigned  TailOffset,
Split  Split,
WhitespaceManager Whitespaces 
) const
override

Definition at line 754 of file BreakableToken.cpp.

◆ mayReflow()

bool clang::format::BreakableLineCommentSection::mayReflow ( unsigned  LineIndex,
llvm::Regex &  CommentPragmasRegex 
) const
overridevirtual

◆ reflow()

void clang::format::BreakableLineCommentSection::reflow ( unsigned  LineIndex,
WhitespaceManager Whitespaces 
) const
override

Definition at line 789 of file BreakableToken.cpp.

◆ updateNextToken()

void clang::format::BreakableLineCommentSection::updateNextToken ( LineState State) const
override

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