clang: clang::format::UnwrappedLineFormatter Class Reference (original) (raw)
#include "[/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/UnwrappedLineFormatter.h](UnwrappedLineFormatter%5F8h%5Fsource.html)"
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.
◆ format()
Format the current block and return the penalty.
Definition at line 1423 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().
The documentation for this class was generated from the following files:
- lib/Format/UnwrappedLineFormatter.h
- lib/Format/UnwrappedLineFormatter.cpp