clang 20.0.0git
|
Public Member Functions | |
UnwrappedLineFormatter (ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, FormattingAttemptStatus *Status) | |
unsigned | format (const SmallVectorImpl< AnnotatedLine * > &Lines, bool DryRun=false, int AdditionalIndent=0, bool FixBadIndentation=false, unsigned FirstStartColumn=0, unsigned NextStartColumn=0, unsigned LastStartColumn=0) |
Format the current block and return the penalty. | |
Definition at line 26 of file UnwrappedLineFormatter.h.
|
inline |
Definition at line 28 of file UnwrappedLineFormatter.h.
References Indenter.
unsigned clang::format::UnwrappedLineFormatter::format | ( | const SmallVectorImpl< AnnotatedLine * > & | Lines, |
bool | DryRun = false , |
||
int | AdditionalIndent = 0 , |
||
bool | FixBadIndentation = false , |
||
unsigned | FirstStartColumn = 0 , |
||
unsigned | NextStartColumn = 0 , |
||
unsigned | LastStartColumn = 0 |
||
) |
Format the current block and return the penalty.
Definition at line 1332 of file UnwrappedLineFormatter.cpp.
References clang::format::AnnotatedLine::Affected, clang::format::AnnotatedLine::ChildrenAffected, clang::format::AnnotatedLine::ContainsMacroCall, clang::format::AnnotatedLine::First, format(), clang::format::FormattingAttemptStatus::FormatComplete, clang::Token::getLocation(), clang::SourceManager::getSpellingLineNumber(), clang::if(), Indenter, clang::format::AnnotatedLine::InPPDirective, clang::format::FormatToken::is(), clang::format::FormatToken::IsFirst, clang::format::AnnotatedLine::Last, clang::format::AnnotatedLine::LeadingEmptyLinesAffected, clang::format::AnnotatedLine::Level, clang::Line, clang::format::FormattingAttemptStatus::Line, clang::format::LT_ImportStatement, clang::format::LT_Invalid, clang::format::FormatToken::NewlinesBefore, clang::format::FormatToken::Next, clang::format::FormatToken::OriginalColumn, clang::format::AnnotatedLine::startsWith(), clang::format::FormatToken::Tok, clang::format::FormatToken::TotalLength, clang::format::AnnotatedLine::Type, and UINT_MAX.
Referenced by format().