clang: clang::format::ContinuationIndenter Class Reference (original) (raw)
#include "[/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Format/ContinuationIndenter.h](ContinuationIndenter%5F8h%5Fsource.html)"
Public Member Functions | |
---|---|
ContinuationIndenter (const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, WhitespaceManager &Whitespaces, encoding::Encoding Encoding, bool BinPackInconclusiveFunctions) | |
Constructs a ContinuationIndenter to format Line starting in column FirstIndent. | |
LineState | getInitialState (unsigned FirstIndent, unsigned FirstStartColumn, const AnnotatedLine *Line, bool DryRun) |
Get the initial state, i.e. | |
bool | canBreak (const LineState &State) |
Returns true, if a line break after State is allowed. | |
bool | mustBreak (const LineState &State) |
Returns true, if a line break after State is mandatory. | |
unsigned | addTokenToState (LineState &State, bool Newline, bool DryRun, unsigned ExtraSpaces=0) |
Appends the next token to State and updates information necessary for indentation. | |
unsigned | getColumnLimit (const LineState &State) const |
Get the column limit for this line. | |
Definition at line 46 of file ContinuationIndenter.h.
◆ addTokenToState()
◆ canBreak()
bool clang::format::ContinuationIndenter::canBreak | ( | const LineState & | State | ) |
---|
◆ getColumnLimit()
unsigned clang::format::ContinuationIndenter::getColumnLimit | ( | const LineState & | State | ) | const |
---|
◆ getInitialState()
◆ mustBreak()
bool clang::format::ContinuationIndenter::mustBreak | ( | const LineState & | State | ) |
---|
Returns true
, if a line break after State
is mandatory.
Definition at line 386 of file ContinuationIndenter.cpp.
References clang::format::FormatStyle::AlwaysBreakBeforeMultilineStrings, clang::prec::Assignment, clang::format::FormatStyle::BBCDS_Allowed, clang::format::FormatStyle::BBCDS_Always, clang::format::FormatStyle::BBCDS_Never, clang::format::FormatStyle::BBIAS_Always, clang::format::FormatStyle::BBIAS_OnlyMultiline, clang::format::FormatStyle::BCIS_AfterColon, clang::format::FormatStyle::BCIS_BeforeColon, clang::format::FormatStyle::BraceWrappingFlags::BeforeLambdaBody, clang::format::FormatStyle::BinPackParameters, clang::format::BK_Block, clang::format::FormatStyle::BPPS_BinPack, clang::format::FormatStyle::BraceWrapping, clang::format::FormatStyle::BreakAfterReturnType, clang::format::FormatStyle::BreakBeforeConceptDeclarations, clang::format::FormatStyle::BreakBeforeInlineASMColon, clang::format::FormatStyle::BreakBeforeTernaryOperators, clang::format::FormatStyle::BreakConstructorInitializers, clang::format::FormatStyle::BreakTemplateDeclarations, clang::format::FormatStyle::BTDS_Leave, clang::format::FormatStyle::BTDS_No, clang::format::FormatStyle::ColumnLimit, clang::format::FormatStyle::ContinuationIndentWidth, clang::prec::Equality, getColumnLimit(), clang::format::getLengthToMatchingParen(), clang::format::getLengthToNextOperator(), clang::format::FormatToken::is(), clang::format::FormatStyle::isCpp(), clang::format::FormatStyle::isCSharp(), clang::format::FormatStyle::isJavaScript(), clang::format::AdditionalKeywords::kw_dollar, clang::format::FormatStyle::Language, clang::format::FormatStyle::LK_ObjC, clang::format::LT_PreprocessorDirective, clang::format::FormatStyle::ObjCBreakBeforeNestedBlockParam, clang::format::opensProtoMessageField(), Previous, clang::format::FormatStyle::RCPS_SingleLine, clang::format::FormatStyle::RCPS_WithPreceding, clang::prec::Relational, clang::format::FormatStyle::RequiresClausePosition, clang::format::FormatStyle::RTBS_ExceptShortType, clang::prec::Spaceship, clang::format::startsNextParameter(), and clang::format::startsSegmentOfBuilderTypeCall().
The documentation for this class was generated from the following files:
- lib/Format/ContinuationIndenter.h
- lib/Format/ContinuationIndenter.cpp