clang
3.9.0
|
#include <UnwrappedLineFormatter.h>
Public Member Functions | |
UnwrappedLineFormatter (ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, bool *IncompleteFormat) | |
unsigned | format (const SmallVectorImpl< AnnotatedLine * > &Lines, bool DryRun=false, int AdditionalIndent=0, bool FixBadIndentation=false) |
Format the current block and return the penalty. More... | |
Definition at line 31 of file UnwrappedLineFormatter.h.
|
inline |
Definition at line 33 of file UnwrappedLineFormatter.h.
unsigned clang::format::UnwrappedLineFormatter::format | ( | const SmallVectorImpl< AnnotatedLine * > & | Lines, |
bool | DryRun = false , |
||
int | AdditionalIndent = 0 , |
||
bool | FixBadIndentation = false |
||
) |
Format the current block and return the penalty.
Definition at line 797 of file UnwrappedLineFormatter.cpp.
References clang::format::AnnotatedLine::Affected, clang::format::AnnotatedLine::ChildrenAffected, clang::format::AnnotatedLine::First, clang::if(), clang::format::AnnotatedLine::InPPDirective, clang::format::FormatToken::IsFirst, clang::format::AnnotatedLine::Last, clang::format::AnnotatedLine::LeadingEmptyLinesAffected, clang::format::AnnotatedLine::Level, Line, clang::format::FormatStyle::LK_JavaScript, clang::format::LT_ImportStatement, clang::format::LT_Invalid, min(), clang::format::FormatToken::NewlinesBefore, clang::format::FormatToken::Next, clang::format::FormatToken::OriginalColumn, clang::format::AnnotatedLine::startsWith(), clang::format::FormatToken::TotalLength, clang::format::AnnotatedLine::Type, and UINT_MAX.